Skip to content

Commit 96c8285

Browse files
committed
Initial commit
0 parents  commit 96c8285

32 files changed

+1884
-0
lines changed

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
/node_modules
11+
/docsify
12+
13+
dist-ssr
14+
*.local
15+
16+
# Editor directories and files
17+
.vscode/*
18+
!.vscode/extensions.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?

.vscode/extensions.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
12+
13+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
14+
15+
1. Disable the built-in TypeScript Extension
16+
1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
17+
2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
18+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

dist/assets/index-41ec4ea7.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index-6f8b359c.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/background.svg

+1
Loading

dist/images/test.png

1.76 MB
Loading

dist/index.html

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css">-->
6+
7+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
10+
<title>Gregory Ling</title>
11+
<script type="module" crossorigin src="/assets/index-6f8b359c.js"></script>
12+
<link rel="stylesheet" href="/assets/index-41ec4ea7.css">
13+
</head>
14+
<body id="app" tabindex="-1">
15+
</body>
16+
</html>

dist/vite.svg

+1
Loading

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css">-->
6+
<link rel="stylesheet" type="text/css" href="/src/style.less" />
7+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
<script type="module" src="/src/main.ts"></script>
10+
<title>Gregory Ling</title>
11+
</head>
12+
<body id="app" tabindex="-1">
13+
</body>
14+
</html>

package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "glingy.github.io",
3+
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
10+
},
11+
"dependencies": {
12+
"@yankeeinlondon/builder-api": "^1.4.1",
13+
"vue": "^3.2.45",
14+
"vue-router": "^4.1.6"
15+
},
16+
"devDependencies": {
17+
"@vitejs/plugin-vue": "^4.0.0",
18+
"less": "^4.1.3",
19+
"typescript": "^4.9.3",
20+
"vite": "^4.0.0",
21+
"vite-plugin-md": "^0.21.5",
22+
"vue-tsc": "^1.0.11"
23+
}
24+
}

public/background.svg

+1
Loading

public/images/test.png

1.76 MB
Loading

public/vite.svg

+1
Loading

src/App.vue

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<script setup lang="ts">
2+
import { RouterView } from 'vue-router'
3+
import NavBar from './components/NavBar.vue';
4+
</script>
5+
6+
<template>
7+
<NavBar/>
8+
<router-view class="content"/>
9+
</template>
10+
11+
<style>
12+
.content {
13+
position: relative;
14+
top: 0;
15+
display: block;
16+
margin-left: calc(50% - 520px);
17+
width: 1000px;
18+
padding: 20px;
19+
background-color: var(--content-background);
20+
box-shadow: 0px 0px 5px 0px black;
21+
margin-top: calc(10px + var(--navbar-height));
22+
margin-bottom: 10px;
23+
min-height: calc(100vh - 60px - var(--navbar-height));
24+
}
25+
26+
@media screen and (max-width: 1060px) {
27+
.content {
28+
margin-left: 10px;
29+
width: calc(100vw - 60px);
30+
}
31+
}
32+
33+
@media screen and (max-width: 600px) {
34+
.content {
35+
margin-left: 0;
36+
padding: 10px;
37+
width: calc(100vw - 20px);
38+
}
39+
}
40+
</style>

0 commit comments

Comments
 (0)