-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
41 changed files
with
6,709 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/.github | ||
/dist | ||
/node_modules | ||
/public |
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,102 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
}, | ||
globals: { | ||
__REPL_VERSION__: true, | ||
__PLAY_VERSION__: true, | ||
__VERSION__: true, | ||
__VUE_VERSION__: true, | ||
__TS_VERSION__: true, | ||
|
||
}, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:vue/vue3-essential', | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [ | ||
'.eslintrc.{js,cjs}', | ||
], | ||
parserOptions: { | ||
sourceType: 'script', | ||
}, | ||
}, | ||
{ | ||
files: ['*.html'], | ||
rules: { | ||
'vue/comment-directive': 'off', | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
parser: '@typescript-eslint/parser', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'@typescript-eslint', | ||
'vue', | ||
], | ||
rules: { | ||
indent: [ | ||
'error', | ||
2, | ||
], | ||
'linebreak-style': [ | ||
'error', | ||
'unix', | ||
], | ||
quotes: 'off', | ||
'quote-props': [ | ||
'error', | ||
'as-needed', | ||
], | ||
'@typescript-eslint/quotes': [ | ||
'error', | ||
'single', | ||
{ | ||
avoidEscape: true, | ||
}, | ||
], | ||
semi: 'off', | ||
'@typescript-eslint/semi': [ | ||
'error', | ||
'always', | ||
], | ||
'comma-dangle': 'off', | ||
'@typescript-eslint/comma-dangle': [ | ||
'error', | ||
'always-multiline', | ||
], | ||
'object-curly-spacing': 'off', | ||
'@typescript-eslint/object-curly-spacing': [ | ||
'error', | ||
'always', | ||
], | ||
'@typescript-eslint/type-annotation-spacing': 'error', | ||
'keyword-spacing': 'off', | ||
'@typescript-eslint/keyword-spacing': 'error', | ||
'key-spacing': 'off', | ||
'@typescript-eslint/key-spacing': 'error', | ||
'@typescript-eslint/no-explicit-any': [ | ||
'error', | ||
{ fixToUnknown: true, ignoreRestArgs: true }, | ||
], | ||
'arrow-parens': [ | ||
'error', | ||
'always', | ||
], | ||
'template-curly-spacing': [ | ||
'error', | ||
'always', | ||
], | ||
}, | ||
}; |
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 @@ | ||
github: [pdanpdan] |
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,33 @@ | ||
name: GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
cache: pnpm | ||
|
||
- name: Install deps | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
force_orphan: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
*.log |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022-present Popescu Dan | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,5 @@ | ||
# Quasar Playground | ||
|
||
Quasar Playground is a vue sfc playground base `@vue/repl`. | ||
|
||
[Play online here.](https://pdanpdan.github.io/quasar-play/) |
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,13 @@ | ||
declare const __VERSION__: string; | ||
declare const __VUE_VERSION__: string; | ||
declare const __TS_VERSION__: string; | ||
declare const __PLAY_VERSION__: string; | ||
declare const __REPL_VERSION__: string; | ||
|
||
declare module '*.vue' { | ||
import type { DefineComponent } from 'vue'; | ||
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>; | ||
export default component; | ||
} | ||
|
||
declare module '@vue/repl/monaco-editor'; |
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,24 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" type="image/svg" href="/logo-light.svg" media="(prefers-color-scheme: light)" /> | ||
<link rel="icon" type="image/svg" href="/logo-dark.svg" media="(prefers-color-scheme: dark)" /> | ||
<title>Quasar Playground</title> | ||
|
||
<script> | ||
// process shim for old versions of @vue/compiler-sfc dependency | ||
window.process = { env: {} } | ||
</script> | ||
|
||
<script type="module" src="./src/main.ts"></script> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
</body> | ||
|
||
</html> |
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,68 @@ | ||
{ | ||
"name": "@pdanpdan/quasar-play", | ||
"version": "1.0.0", | ||
"description": "Playground for Quasar Framework", | ||
"productName": "Quasar Play", | ||
"author": { | ||
"name": "Dan Popescu", | ||
"email": "[email protected]", | ||
"url": "https://github.com/pdanpdan" | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/sponsors/pdanpdan" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/pdanpdan/quasar-play.git" | ||
}, | ||
"keywords": [ | ||
"vue", | ||
"vue3", | ||
"quasar", | ||
"framework", | ||
"play", | ||
"playground", | ||
"repl" | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pdanpdan/quasar-play/issues" | ||
}, | ||
"homepage": "https://pdanpdan.github.io/quasar-play", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite dev", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"lint": "eslint --ext .js,.vue,.cjs,.ts .", | ||
"typecheck": "vue-tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"@quasar/extras": "^1.16.8", | ||
"@vue/repl": "^2.7.0", | ||
"fflate": "^0.8.1", | ||
"file-saver": "^2.0.5", | ||
"jszip": "^3.10.1", | ||
"quasar": "^2.14.0", | ||
"vue": "^3.3.8" | ||
}, | ||
"devDependencies": { | ||
"@quasar/vite-plugin": "^1.6.0", | ||
"@types/file-saver": "^2.0.7", | ||
"@types/node": "^20.9.1", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"@vitejs/plugin-vue": "^4.5.0", | ||
"autoprefixer": "^10.4.16", | ||
"eslint": "^8.54.0", | ||
"eslint-plugin-vue": "^9.18.1", | ||
"postcss": "^8.4.31", | ||
"prettier": "^3.1.0", | ||
"sass": "^1.69.5", | ||
"vite": "^5.0.0", | ||
"vite-plugin-mkcert": "^1.16.0", | ||
"vite-plugin-pwa": "^0.17.0", | ||
"vue-tsc": "^1.8.22" | ||
} | ||
} |
Oops, something went wrong.