mirror of
				https://github.com/h44z/wg-portal.git
				synced 2025-10-31 14:36:18 +00:00 
			
		
		
		
	Initial alpha codebase for version 2 of WireGuard Portal. This version is considered unstable and incomplete (for example, no public REST API)! Use with care! Fixes/Implements the following issues: - OAuth support #154, #1 - New Web UI with internationalisation support #98, #107, #89, #62 - Postgres Support #49 - Improved Email handling #47, #119 - DNS Search Domain support #46 - Bugfixes #94, #48 --------- Co-authored-by: Fabian Wechselberger <wechselbergerf@hotmail.com>
		
			
				
	
	
		
			46 lines
		
	
	
		
			956 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			956 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { createApp } from "vue";
 | |
| import { createPinia } from "pinia";
 | |
| 
 | |
| import App from "./App.vue";
 | |
| import router from "./router";
 | |
| 
 | |
| import i18n from "./lang";
 | |
| 
 | |
| import Notifications from '@kyvg/vue3-notification'
 | |
| 
 | |
| // Bootstrap (and theme)
 | |
| //import "bootstrap/dist/css/bootstrap.min.css"
 | |
| import "bootswatch/dist/lux/bootstrap.min.css";
 | |
| import "bootstrap";
 | |
| import "./assets/base.css";
 | |
| 
 | |
| // Fontawesome
 | |
| import "@fortawesome/fontawesome-free/js/all.js"
 | |
| 
 | |
| // Flags
 | |
| import "flag-icons/css/flag-icons.min.css"
 | |
| 
 | |
| // Syntax Highlighting
 | |
| import 'prismjs'
 | |
| import 'prismjs/themes/prism-okaidia.css'
 | |
| 
 | |
| const app = createApp(App);
 | |
| 
 | |
| app.use(i18n)
 | |
| app.use(createPinia());
 | |
| app.use(router);
 | |
| app.use(Notifications);
 | |
| 
 | |
| app.config.globalProperties.$filters = {
 | |
|   truncate(value, maxLength, suffix) {
 | |
|     suffix = suffix || '...'
 | |
|     if (value.length > maxLength) {
 | |
|       return value.substring(0, maxLength) + suffix;
 | |
|     } else {
 | |
|       return value;
 | |
|     }
 | |
|   }
 | |
| }
 | |
| 
 | |
| app.mount("#app");
 |