-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
150 changed files
with
100,507 additions
and
2,554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
WWW_URL=http://localhost:3000 | ||
LIVE_KEY=D:/ssh/node-server.pem | ||
VITE_DOMAIN=food.misiki.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.env | ||
.DS_Store | ||
node_modules | ||
/.svelte | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Typical File for extension: vscode-graphql & CodeGen! | ||
projects: | ||
default: | ||
schema: | ||
- ./src/lib/graphql/schema.json # or https://localhost:3777/graphql | ||
documents: | ||
- '**/*.gql' | ||
extensions: | ||
endpoints: | ||
default: | ||
url: https://localhost:3000/graphql | ||
codegen: | ||
generates: | ||
./src/lib/graphql/_kitql/graphqlTypes.ts: | ||
plugins: | ||
- typescript | ||
- typescript-operations | ||
- typed-document-node | ||
- typescript-document-nodes | ||
|
||
./src/lib/graphql/_kitql/graphqlStores.ts: | ||
plugins: | ||
- '@kitql/graphql-codegen' | ||
config: | ||
importBaseTypesFrom: $lib/graphql/_kitql/graphqlTypes | ||
operationPrefix: 'KQL_' | ||
|
||
config: | ||
useTypeImports: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/api/* https://api.litekart.in/api/:splat 200 | ||
/images/* https://api.litekart.in/images/:splat 200 | ||
/api/_ https://api.misiki.in/api/:splat 200 | ||
/images/_ https://api.misiki.in/images/:splat 200 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
module.exports = { | ||
plugins: { | ||
autoprefixer: {}, | ||
tailwindcss: {}, | ||
}, | ||
const tailwindcss = require('tailwindcss') | ||
const autoprefixer = require('autoprefixer') | ||
const cssnano = require('cssnano') | ||
|
||
const mode = process.env.NODE_ENV | ||
const dev = mode === 'development' | ||
|
||
const config = { | ||
plugins: [ | ||
//Some plugins, like tailwindcss/nesting, need to run before Tailwind, | ||
tailwindcss(), | ||
//But others, like autoprefixer, need to run after, | ||
autoprefixer(), | ||
!dev && | ||
cssnano({ | ||
preset: 'default', | ||
}), | ||
], | ||
} | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Quill from 'quill' | ||
|
||
export function quill(node, options) { | ||
const quill = new Quill(node, { | ||
modules: { | ||
toolbar: [ | ||
[{ header: [1, 2, 3, false] }], | ||
['bold', 'italic', 'underline', 'strike'], | ||
['link', 'code-block'], | ||
], | ||
}, | ||
placeholder: 'Type something...', | ||
theme: 'snow', // or 'bubble' | ||
...options, | ||
}) | ||
const container = node.getElementsByClassName('ql-editor')[0] | ||
|
||
quill.on('text-change', function (delta, oldDelta, source) { | ||
node.dispatchEvent( | ||
new CustomEvent('text-change', { | ||
detail: { | ||
html: container.innerHTML, | ||
text: quill.getText(), | ||
}, | ||
}) | ||
) | ||
}) | ||
} |
Oops, something went wrong.