mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Few fixes.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"buefy": "^0.6.5",
|
||||
"js-cookie": "^2.2.0",
|
||||
"vue": "^2.5.2",
|
||||
"vue-resource": "^1.5.0",
|
||||
"vue-router": "^3.0.1"
|
||||
|
||||
@@ -9,11 +9,17 @@
|
||||
</p>
|
||||
<ul class="menu-list">
|
||||
<router-link tag="li" :to="{ name: 'DomainList' }">
|
||||
<a>Domains</a>
|
||||
<a><b-icon pack="fas" icon="user"></b-icon> Domains</a>
|
||||
</router-link>
|
||||
<router-link tag="li" :to="{ name: 'DomainList' }">
|
||||
<a>Identities</a>
|
||||
</router-link>
|
||||
<router-link tag="li" :to="{ name: 'DomainList' }">
|
||||
<a>Logs</a>
|
||||
</router-link>
|
||||
<router-link tag="li" :to="{ name: 'DomainList' }">
|
||||
<a>Settings</a>
|
||||
</router-link>
|
||||
</ul>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
@@ -2,6 +2,8 @@ import Vue from 'vue'
|
||||
import Buefy from 'buefy'
|
||||
import 'buefy/lib/buefy.css'
|
||||
|
||||
import Cookies from 'js-cookie'
|
||||
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
|
||||
@@ -9,6 +11,10 @@ Vue.use(Buefy)
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
/* Deal with django CSRF protection */
|
||||
let csrftoken = Cookies.get('csrftoken')
|
||||
Vue.http.headers.common['X-CSRFTOKEN'] = csrftoken
|
||||
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
el: '#app',
|
||||
|
||||
@@ -18,7 +18,7 @@ def apply(settings):
|
||||
if "webpack_loader" not in settings["INSTALLED_APPS"]:
|
||||
settings["INSTALLED_APPS"] += ("webpack_loader", )
|
||||
settings["WEBPACK_LOADER"] = {
|
||||
"CALENDAR": {
|
||||
"ADMIN": {
|
||||
"CACHE": not DEBUG,
|
||||
"BUNDLE_DIR_NAME": "admin/",
|
||||
"STATS_FILE": ADMIN_STATS_FILES.get("dev" if DEBUG else "prod"),
|
||||
|
||||
@@ -35,6 +35,8 @@ ALLOWED_HOSTS = [
|
||||
"localhost",
|
||||
]
|
||||
|
||||
INTERNAL_IPS = ['127.0.0.1']
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
# Security settings
|
||||
|
||||
Reference in New Issue
Block a user