Few fixes.

This commit is contained in:
Antoine Nguyen
2018-10-05 14:06:59 +02:00
parent 09c2ce7972
commit 9bebc8b04e
5 changed files with 17 additions and 2 deletions
+1
View File
@@ -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"
+7 -1
View File
@@ -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>
+6
View File
@@ -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',
+1 -1
View File
@@ -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"),
+2
View File
@@ -35,6 +35,8 @@ ALLOWED_HOSTS = [
"localhost",
]
INTERNAL_IPS = ['127.0.0.1']
SITE_ID = 1
# Security settings