Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 5a55b35

Browse files
committed
fixed index.template.html for quasar v2, ran npm run lint -- --fix, changed django settings
1 parent 951dd49 commit 5a55b35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+192
-252
lines changed

backend/backend/settings/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313
import os
14+
from pathlib import Path
1415

1516
from kombu import Queue
1617
import redis
@@ -266,7 +267,7 @@
266267
# Assets
267268

268269
STATIC_URL = "/static/"
269-
STATIC_ROOT = os.path.join(BASE_DIR, "media")
270+
STATIC_ROOT = os.path.join(BASE_DIR, "static")
270271

271272
MEDIA_URL = "/media/"
272273
MEDIA_ROOT = os.path.join(BASE_DIR, "media")

backend/scripts/ci/Dockerfile

Lines changed: 0 additions & 49 deletions
This file was deleted.

docker-compose.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ services:
77
networks:
88
- main
99
ports:
10-
- "5434:5432"
10+
- "5432:5432"
1111
volumes:
12-
- pg-data:/var/lib/postgresql/data
12+
- pgdata:/var/lib/postgresql/data
1313
environment:
14-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
15-
- POSTGRES_USER=${POSTGRES_USERNAME}
16-
- POSTGRES_DB=${POSTGRES_NAME}
14+
- POSTGRES_PASSWORD=postgres
1715

1816
redis:
1917
image: redis:alpine
@@ -91,18 +89,10 @@ services:
9189
networks:
9290
- main
9391
environment:
94-
- CI_PIPELINE_TRIGGERED=True
9592
- SECRET_KEY=secret-key-for-development
9693
- DEBUG=True
9794
- DJANGO_EMAIL_HOST=${DJANGO_EMAIL_HOST}
9895
- DJANGO_EMAIL_PORT=${DJANGO_EMAIL_PORT}
99-
- POSTGRES_NAME=${POSTGRES_NAME}
100-
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
101-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
102-
- POSTGRES_SERVICE_HOST=${POSTGRES_SERVICE_HOST}
103-
- POSTGRES_SERVICE_PORT=${POSTGRES_SERVICE_PORT}
104-
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
105-
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
10696
- DJANGO_SETTINGS_MODULE=backend.settings.development
10797
- GITHUB_KEY=${GITHUB_KEY}
10898
- GITHUB_SECRET=${GITHUB_SECRET}
@@ -211,7 +201,7 @@ services:
211201
restart: unless-stopped
212202

213203
volumes:
214-
pg-data:
204+
pgdata:
215205
django-static:
216206
redis-data:
217207
pgadmin:

quasar/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,14 @@
3131
"vue-native-websocket": "2.0.14"
3232
},
3333
"devDependencies": {
34-
"@quasar/app": "1.9.0",
34+
"@quasar/app": "^2.0.0",
3535
"@vue/eslint-config-prettier": "6.0.0",
3636
"babel-eslint": "10.1.0",
3737
"eslint": "5.16.0",
3838
"eslint-loader": "4.0.2",
3939
"eslint-plugin-prettier": "3.1.3",
40-
"eslint-plugin-vue": "6.2.2"
40+
"eslint-plugin-vue": "6.2.2",
41+
"workbox-webpack-plugin": "^5.1.3"
4142
},
4243
"engines": {
4344
"node": ">= 8.9.0",

quasar/quasar.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ module.exports = function (ctx) {
137137

138138
pwa: {
139139
// workboxPluginMode: "InjectManifest",
140+
workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
140141
workboxOptions: {
141142
navigateFallback: "/index.html",
142-
navigateFallbackBlacklist: [
143-
/\/[admin,api,flower]+\/.*/,
144-
/[admin,api,flower]+\/.*/,
143+
navigateFallbackDenylist: [
144+
/\/[admin,api,flower,pgadmin,rediscommander]+\/.*/,
145145
],
146146
},
147147
manifest: {

quasar/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
export default {
1111
name: "App",
1212
13-
created: function() {
13+
created: function () {
1414
// if (this.$store.getters.isAuthenticated) {
1515
// this.$store.dispatch("USER_REQUEST");
1616
// // refresh the token every 4 minutes while the user is logged in in production
@@ -20,7 +20,7 @@ export default {
2020
// this.$store.dispatch("AUTH_REFRESH");
2121
// }, 1000 * 60 * refreshFrequency);
2222
// }
23-
}
23+
},
2424
// TODO: set this in Vuex
2525
// const isDesktop = this.$q.platform.is.desktop;
2626
};

quasar/src/boot/i18n.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Vue.use(VueI18n);
77
const i18n = new VueI18n({
88
locale: "en-us",
99
fallbackLocale: "en-us",
10-
messages
10+
messages,
1111
});
1212

1313
export default ({ app }) => {

quasar/src/components/LeftMenuLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<script>
1616
export default {
17-
props: ["label", "to", "icon", "caption"]
17+
props: ["label", "to", "icon", "caption"],
1818
};
1919
</script>
2020

quasar/src/components/MainCarousel.vue

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@
1111
padding
1212
arrows
1313
height="300px"
14-
:class="
15-
`text-white shadow-1 rounded-borders ${
16-
$store.getters.isDark ? 'carousel-dark' : 'carousel-light'
17-
}`
18-
"
14+
:class="`text-white shadow-1 rounded-borders ${
15+
$store.getters.isDark ? 'carousel-dark' : 'carousel-light'
16+
}`"
1917
>
2018
<q-carousel-slide name="style" class="column no-wrap flex-center">
2119
<q-icon name="layers" size="56px" />
@@ -47,9 +45,9 @@ export default {
4745
data() {
4846
return {
4947
lorem: "Abc123",
50-
slide: "style"
48+
slide: "style",
5149
};
52-
}
50+
},
5351
};
5452
</script>
5553

quasar/src/components/auth/LoginForm.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
data() {
3737
return {
3838
email: process.env.NODE_ENV === "production" ? "" : "[email protected]",
39-
password: process.env.NODE_ENV === "production" ? "" : "password"
39+
password: process.env.NODE_ENV === "production" ? "" : "password",
4040
};
4141
},
4242
methods: {
@@ -45,7 +45,7 @@ export default {
4545
this.$store
4646
.dispatch("AUTH_REQUEST", {
4747
email: this.email,
48-
password: this.password
48+
password: this.password,
4949
})
5050
.then(() => {
5151
vm.$router.push("/");
@@ -57,8 +57,8 @@ export default {
5757
});
5858
this.email = "";
5959
this.password = "";
60-
}
61-
}
60+
},
61+
},
6262
};
6363
</script>
6464

quasar/src/components/auth/SignUpForm.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default {
4141
return {
4242
email: "",
4343
password: "",
44-
visible: false
44+
visible: false,
4545
};
4646
},
4747
methods: {
@@ -51,7 +51,7 @@ export default {
5151
.then(() => {
5252
this.$q.notify({
5353
title: "User registered",
54-
message: "Thank you for registering!"
54+
message: "Thank you for registering!",
5555
});
5656
this.visible = false;
5757
this.$router.push("/");
@@ -60,8 +60,8 @@ export default {
6060
this.visible = false;
6161
this.$q.notify("There was an error.");
6262
});
63-
}
64-
}
63+
},
64+
},
6565
};
6666
</script>
6767

quasar/src/components/services/ServiceLink.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ export default {
99
props: {
1010
href: {
1111
type: String,
12-
default: "#"
12+
default: "#",
1313
},
1414
name: {
1515
type: String,
16-
default: ""
16+
default: "",
1717
},
1818
icon: {
1919
type: String,
20-
default: ""
20+
default: "",
2121
},
2222
target: {
2323
type: String,
24-
default: "_blank"
24+
default: "_blank",
2525
},
2626
type: {
2727
type: String,
28-
default: "a"
29-
}
30-
}
28+
default: "a",
29+
},
30+
},
3131
};
3232
</script>
3333

quasar/src/components/ui/BaseBtn.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ export default {
77
props: {
88
color: {
99
type: String,
10-
default: "white"
11-
}
10+
default: "white",
11+
},
1212
},
1313
textColor: {
1414
type: String,
15-
default: "black"
16-
}
15+
default: "black",
16+
},
1717
};
1818
</script>
1919

quasar/src/components/ui/BaseInput.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<q-input v-bind="$attrs" v-on="$listeners" :dark="$store.getters.isDark">
3-
<template v-slot:prepend>
4-
<slot></slot> </template
3+
<template v-slot:prepend> <slot></slot> </template
54
></q-input>
65
</template>
76

quasar/src/components/ui/BasePage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default {
1313
methods: {
1414
getStyle() {
1515
return { color: "white" };
16-
}
17-
}
16+
},
17+
},
1818
};
1919
</script>
2020

quasar/src/components/ui/DarkMode.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export default {
1111
},
1212
set() {
1313
this.$store.commit("toggleDarkMode");
14-
}
15-
}
16-
}
14+
},
15+
},
16+
},
1717
};
1818
</script>
1919

quasar/src/components/ui/PageText.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export default {
1212
props: {
1313
size: {
1414
type: Number,
15-
default: 1.25
16-
}
17-
}
15+
default: 1.25,
16+
},
17+
},
1818
};
1919
</script>

quasar/src/i18n/cn-cn/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import leftDrawer from "./leftDrawer";
22

33
export default {
4-
...leftDrawer
4+
...leftDrawer,
55
};

quasar/src/i18n/en-us/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import leftDrawer from "./leftDrawer";
33
export default {
44
...leftDrawer,
55
failed: "Hello",
6-
success: "Action was successful"
6+
success: "Action was successful",
77
};

quasar/src/i18n/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import cnCN from "./cn-cn";
33

44
export default {
55
"en-us": enUS,
6-
"cn-cn": cnCN
6+
"cn-cn": cnCN,
77
};

quasar/src/index.template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description" content="<%= htmlWebpackPlugin.options.productDescription %>">
88
<meta name="format-detection" content="telephone=no">
99
<meta name="msapplication-tap-highlight" content="no">
10-
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (htmlWebpackPlugin.options.ctx.mode.cordova || htmlWebpackPlugin.options.ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
10+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width<% if (ctx.mode.cordova || ctx.mode.capacitor) { %>, viewport-fit=cover<% } %>">
1111

1212
<link rel="icon" type="image/png" href="statics/app-logo-128x128.png">
1313
<link rel="icon" type="image/png" sizes="16x16" href="statics/icons/favicon-16x16.png">

quasar/src/layouts/MainLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<script>
1818
export default {
19-
name: "MainLayout"
19+
name: "MainLayout",
2020
};
2121
</script>
2222

0 commit comments

Comments
 (0)