Compare commits

..

No commits in common. "84d135d5e31f8842e9841e4973b97602bda73dee" and "1a183067b86ec8e65d0ba7cd03438bbc484995ac" have entirely different histories.

7 changed files with 49 additions and 3875 deletions

View File

@ -1,7 +0,0 @@
root = true
[*]
end_of_line = lf
insert_final_newline = false
indent_style = space
indent_size = 4

View File

@ -1,47 +1,20 @@
pipeline: pipeline:
# =====TESTING===== test:
test-backend:
# Alpine version doesn't have make # Alpine version doesn't have make
image: python:3.8 image: python:3.8
pull: true pull: true
group: test
commands: commands:
- make test - make test
when: when:
event: push event: push
test-frontend: lint:
# Alpine version doesn't have make
image: node:16-alpine
pull: true
group: test
commands:
- cd web
- yarn build
when:
event: push
# =====LINTING=====
lint-backend:
image: python:3.8 image: python:3.8
group: lint
commands: commands:
- make lint - make lint
when: when:
event: push event: push
lint-frontend:
image: node:16-alpine
group: lint
commands:
- cd web
- yarn run lint
when:
event: push
# =====PUBLISHING=====
publish-dev: publish-dev:
image: plugins/docker image: plugins/docker
repo: chewingbever/jos repo: chewingbever/jos

View File

@ -1,15 +0,0 @@
env:
browser: true
es2021: true
extends:
- 'plugin:vue/essential'
- standard
parserOptions:
ecmaVersion: 12
parser: '@typescript-eslint/parser'
sourceType: module
plugins:
- vue
- '@typescript-eslint'
rules:
indent: ["error", 4]

View File

@ -4,25 +4,14 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vue-tsc --noEmit && vite build", "build": "vue-tsc --noEmit && vite build",
"serve": "vite preview", "serve": "vite preview"
"lint": "eslint --ext .js,.vue src",
"format": "yarn run lint --fix"
}, },
"dependencies": { "dependencies": {
"vue": "^3.0.5", "vue": "^3.0.5"
"vue-router": "^4.0.6"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@vitejs/plugin-vue": "^1.2.2", "@vitejs/plugin-vue": "^1.2.2",
"@vue/compiler-sfc": "^3.0.5", "@vue/compiler-sfc": "^3.0.5",
"eslint": "^7.26.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.23.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-vue": "^7.9.0",
"typescript": "^4.1.3", "typescript": "^4.1.3",
"vite": "^2.2.3", "vite": "^2.2.3",
"vue-tsc": "^0.1.0" "vue-tsc": "^0.1.0"

View File

@ -1,8 +1,6 @@
<template> <template>
<div> <img alt="Vue logo" src="./assets/logo.png" />
<img alt="Vue logo" src="./assets/logo.png" /> <HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
@ -10,10 +8,10 @@ import { defineComponent } from 'vue'
import HelloWorld from './components/HelloWorld.vue' import HelloWorld from './components/HelloWorld.vue'
export default defineComponent({ export default defineComponent({
name: 'App', name: 'App',
components: { components: {
HelloWorld HelloWorld
} }
}) })
</script> </script>

View File

@ -1,55 +1,53 @@
<template> <template>
<div> <h1>{{ msg }}</h1>
<h1>{{ msg }}</h1>
<p> <p>
Recommended IDE setup: Recommended IDE setup:
<a href="https://code.visualstudio.com/" target="_blank">VSCode</a> <a href="https://code.visualstudio.com/" target="_blank">VSCode</a>
+ +
<a <a
href="https://marketplace.visualstudio.com/items?itemName=octref.vetur" href="https://marketplace.visualstudio.com/items?itemName=octref.vetur"
target="_blank" target="_blank"
> >
Vetur Vetur
</a> </a>
or or
<a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a> <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>
(if using (if using
<code>&lt;script setup&gt;</code>) <code>&lt;script setup&gt;</code>)
</p> </p>
<p>See <code>README.md</code> for more information.</p> <p>See <code>README.md</code> for more information.</p>
<p> <p>
<a href="https://vitejs.dev/guide/features.html" target="_blank"> <a href="https://vitejs.dev/guide/features.html" target="_blank">
Vite Docs Vite Docs
</a> </a>
| |
<a href="https://v3.vuejs.org/" target="_blank">Vue 3 Docs</a> <a href="https://v3.vuejs.org/" target="_blank">Vue 3 Docs</a>
</p> </p>
<button @click="count++">count is: {{ count }}</button> <button @click="count++">count is: {{ count }}</button>
<p> <p>
Edit Edit
<code>components/HelloWorld.vue</code> to test hot module replacement. <code>components/HelloWorld.vue</code> to test hot module replacement.
</p> </p>
</div>
</template> </template>
<script lang="ts"> <script lang="ts">
import { ref, defineComponent } from 'vue' import { ref, defineComponent } from 'vue'
export default defineComponent({ export default defineComponent({
name: 'HelloWorld', name: 'HelloWorld',
props: { props: {
msg: { msg: {
type: String, type: String,
required: true required: true
}
},
setup: () => {
const count = ref(0)
return { count }
} }
},
setup: () => {
const count = ref(0)
return { count }
}
}) })
</script> </script>

File diff suppressed because it is too large Load Diff