-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert - Change from vue cli to vite for better dev - Update UI with tailwindcss
- Loading branch information
1 parent
9dd1f45
commit 3bd1da7
Showing
36 changed files
with
2,659 additions
and
9,478 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
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 |
---|---|---|
|
@@ -19,4 +19,4 @@ jobs: | |
node-version: 12 | ||
- run: yarn | ||
- run: yarn lint | ||
- run: yarn build:element | ||
- run: yarn build |
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 |
---|---|---|
|
@@ -14,3 +14,6 @@ yarn.lock | |
postcss.config.js | ||
babel.config.js | ||
.browserslistrc | ||
.vscode | ||
tailwind.config.js | ||
vite.config.js |
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,3 @@ | ||
{ | ||
"recommendations": ["johnsoncodehk.volar"] | ||
} |
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,3 +1,7 @@ | ||
{ | ||
"css.customData": [".vscode/css_custom_data.json"] | ||
"css.customData": [".vscode/css_custom_data.json"], | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</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,7 @@ | ||
module.exports = { | ||
moduleFileExtensions: ['js', 'ts', 'json', 'vue'], | ||
transform: { | ||
'^.+\\.ts$': 'ts-jest', | ||
'^.+\\.vue$': 'vue-jest', | ||
}, | ||
}; |
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,16 +1,12 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "altair-graphql-plugin-github-sync", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"display_name": "Altair Github Sync", | ||
"description": "Save altair collections to github gist", | ||
"author_email": "[email protected]", | ||
"author": "Huy Hoang", | ||
"plugin_class": "AltairGistSync", | ||
"scripts": [ | ||
"dist/altair-graphql-plugin-github-sync-element.min.js" | ||
], | ||
"styles": [ | ||
"dist/style.css" | ||
] | ||
"scripts": ["dist/github-sync.umd.js"], | ||
"styles": ["dist/style.css"] | ||
} |
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,75 +1,80 @@ | ||
{ | ||
"name": "altair-graphql-plugin-github-sync", | ||
"description": "Altair Sync Gist plugin", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"private": false, | ||
"license": "MIT", | ||
"homepage": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync", | ||
"repository": { | ||
"url": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync/issues" | ||
}, | ||
"description": "Altair Sync Gist plugin", | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"test:unit": "vue-cli-service test:unit", | ||
"lint": "vue-cli-service lint", | ||
"build:element": "vue-cli-service build --target wc --inline-vue --name altair-graphql-plugin-github-sync-element src/index.ts && cp -f src/assets/style.css dist/style.css", | ||
"web-server": "http-server ./ -p 8002 -c-1 --cors", | ||
"clean": "rimraf dist", | ||
"dev": "vite", | ||
"build": "yarn clean && vue-tsc --noEmit && vite build", | ||
"build:watch": "yarn build --watch", | ||
"preview": "run-p build:watch web-server", | ||
"test": "jest src", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue", | ||
"postinstall": "husky install", | ||
"postpublish": "pinst --enable", | ||
"prepublishOnly": "pinst --disable", | ||
"postpublish": "pinst --enable" | ||
"web-server": "http-server ./ -p 8002 -c-1 --cors" | ||
}, | ||
"dependencies": { | ||
"@emotion/core": "^10.0.35", | ||
"@types/uuid": "^8.3.3", | ||
"@vue/web-component-wrapper": "^1.2.0", | ||
"axios": "^0.21.1", | ||
"dexie": "^3.2.0", | ||
"lodash": "^4.17.21", | ||
"uuid": "^8.3.2", | ||
"vue": "^2.6.10", | ||
"vue-inline-svg": "^2.1.0" | ||
"vue": "3.2.26" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^15.0.0", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@tailwindcss/aspect-ratio": "^0.4.0", | ||
"@tailwindcss/forms": "^0.4.0", | ||
"@tailwindcss/jit": "^0.1.18", | ||
"@tailwindcss/line-clamp": "^0.3.0", | ||
"@tailwindcss/typography": "^0.5.0", | ||
"@types/jest": "^24.0.11", | ||
"@types/lodash": "^4.14.178", | ||
"@typescript-eslint/eslint-plugin": "^3.4.0", | ||
"@typescript-eslint/parser": "^3.4.0", | ||
"@vue/cli-plugin-babel": "^4.0.0", | ||
"@vue/cli-plugin-eslint": "^4.0.0", | ||
"@vue/cli-plugin-typescript": "^4.0.0", | ||
"@vue/cli-plugin-unit-jest": "^4.0.0", | ||
"@vue/cli-service": "^4.0.0", | ||
"@vue/eslint-config-prettier": "^5.0.0", | ||
"@vue/eslint-config-typescript": "^4.0.0", | ||
"@vue/test-utils": "1.0.0-beta.29", | ||
"@typescript-eslint/eslint-plugin": "^5.6.0", | ||
"@typescript-eslint/parser": "^5.6.0", | ||
"@vitejs/plugin-vue": "^2.0.0", | ||
"altair-graphql-core": "^4.2.1", | ||
"esbuild": "^0.14.2", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-import-resolver-typescript": "^2.0.0", | ||
"eslint-plugin-import": "^2.21.2", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-vue": "^5.0.0", | ||
"autoprefixer": "^10.4.0", | ||
"eslint": "^8.4.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-vue": "^8.2.0", | ||
"http-server": "^0.11.1", | ||
"husky": "^7.0.4", | ||
"npm-run-all": "^4.1.5", | ||
"pinst": "^2.1.6", | ||
"prettier": "^1.18.2", | ||
"postcss": "^8.4.5", | ||
"postcss-import": "^14.0.2", | ||
"prettier": "^2.4.1", | ||
"rimraf": "^3.0.2", | ||
"sass": "^1.45.0", | ||
"sass-loader": "^10", | ||
"standard-version": "^9.3.0", | ||
"tailwindcss": "^3.0.1", | ||
"typescript": "~3.5.3", | ||
"vue-template-compiler": "^2.6.10" | ||
"typescript": "^4.4.4", | ||
"vite": "^2.7.1", | ||
"vite-svg-loader": "^3.1.1", | ||
"vue-eslint-parser": "^8.0.1", | ||
"vue-tsc": "^0.29.8" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync/issues" | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"homepage": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync", | ||
"license": "MIT", | ||
"repository": { | ||
"url": "https://github.com/boydaihungst/altair-graphql-plugin-github-sync" | ||
} | ||
} |
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,5 +1,7 @@ | ||
module.exports = { | ||
plugins: { | ||
'postcss-import': {}, | ||
'postcss-nested': {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
|
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,6 @@ | ||
export interface IGistFile { | ||
filename: string; | ||
displayName: string; | ||
rawUrl?: string; | ||
gistId: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare module '*.vue' { | ||
import Vue from 'vue'; | ||
export default Vue; | ||
import { DefineComponent } from 'vue'; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types | ||
const component: DefineComponent<{}, {}, any>; | ||
export default component; | ||
} | ||
declare module '@vue/web-component-wrapper'; |
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,31 +1,51 @@ | ||
<template> | ||
<div id="app"> | ||
<GistSync :props="{}" /> | ||
<GistSync :context="context" /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue'; | ||
import { defineComponent, PropType } from 'vue'; | ||
import GistSync from './components/GistSync.vue'; | ||
import { AltairContext } from './@types/altair'; | ||
export default Vue.extend({ | ||
name: 'app', | ||
export default defineComponent({ | ||
name: 'App', | ||
components: { | ||
GistSync, | ||
}, | ||
async mounted() { | ||
await import('./components/GistSync.vue'); | ||
props: { | ||
context: { | ||
type: Object as PropType<AltairContext>, | ||
default: null | ||
}, | ||
}, | ||
// async mounted() { | ||
// await import('./components/GistSync.vue'); | ||
// }, | ||
}); | ||
</script> | ||
|
||
<style lang="scss"> | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@layer utilities { | ||
.bg-theme { | ||
background-color: var(--theme-bg-color); | ||
} | ||
.text-theme { | ||
color: var(--theme-font-color); | ||
} | ||
.text-indigo-500 { | ||
color: var(--primary-color); | ||
} | ||
} | ||
#app { | ||
font-family: 'Avenir', Helvetica, Arial, sans-serif; | ||
font-family: "Avenir", Helvetica, Arial, sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
text-align: center; | ||
color: #2c3e50; | ||
margin-top: 60px; | ||
} | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.