Browse Source

Move webui to project root

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

16
src/webui/index.html

@ -1,16 +0,0 @@
<!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

@ -1,8 +0,0 @@
{
"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

@ -1,21 +0,0 @@
{
"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

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

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

11
src/webui/public/manifest.json

@ -1,11 +0,0 @@
{
"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.

Before

Width:  |  Height:  |  Size: 3.0 KiB

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

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

6
src/webui/src/main.js

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

11
src/webui/tailwind.config.js

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

16
src/webui/vite.config.js

@ -1,16 +0,0 @@
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))
}
}
})

0
src/webui/.gitignore → webui/.gitignore

Loading…
Cancel
Save