Browse Source

Initialize new Vue project; move existing contents

pull/937/head
Daniil Isakov 3 years ago
committed by Sergei Birukov
parent
commit
c5d64038b5
  1. 30
      src/webui/.gitignore
  2. 16
      src/webui/index.html
  3. 8
      src/webui/jsconfig.json
  4. 2374
      src/webui/package-lock.json
  5. 21
      src/webui/package.json
  6. 6
      src/webui/postcss.config.js
  7. BIN
      src/webui/public/img/apple-touch-icon.png
  8. BIN
      src/webui/public/img/favicon.png
  9. 11
      src/webui/public/manifest.json
  10. 1270
      src/webui/src/App.vue
  11. BIN
      src/webui/src/assets/img/logo.png
  12. 3
      src/webui/src/assets/style.css
  13. 6
      src/webui/src/main.js
  14. 11
      src/webui/tailwind.config.js
  15. 16
      src/webui/vite.config.js

30
src/webui/.gitignore

@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local
/cypress/videos/
/cypress/screenshots/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*.tsbuildinfo

16
src/webui/index.html

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WireGuard</title>
<link rel="manifest" href="./manifest.json">
<link rel="icon" type="image/png" href="./img/favicon.png">
<link rel="apple-touch-icon" href="./img/apple-touch-icon.png">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body class="bg-gray-50 dark:bg-neutral-800">
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

8
src/webui/jsconfig.json

@ -0,0 +1,8 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
},
"exclude": ["node_modules", "dist"]
}

2374
src/webui/package-lock.json

File diff suppressed because it is too large

21
src/webui/package.json

@ -0,0 +1,21 @@
{
"name": "webui",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.3.11"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.5.2",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1",
"vite": "^5.0.10"
}
}

6
src/webui/postcss.config.js

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

BIN
src/webui/public/img/apple-touch-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
src/webui/public/img/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

11
src/webui/public/manifest.json

@ -0,0 +1,11 @@
{
"name": "WireGuard",
"display": "standalone",
"background_color": "#fff",
"icons": [
{
"src": "img/favicon.png",
"type": "image/png"
}
]
}

1270
src/webui/src/App.vue

File diff suppressed because it is too large

BIN
src/webui/src/assets/img/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

3
src/webui/src/assets/style.css

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

6
src/webui/src/main.js

@ -0,0 +1,6 @@
import './assets/style.css'
import { createApp } from 'vue'
import App from './App.vue'
createApp(App).mount('#app')

11
src/webui/tailwind.config.js

@ -0,0 +1,11 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

16
src/webui/vite.config.js

@ -0,0 +1,16 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
Loading…
Cancel
Save