Skip to content

Commit cb665e2

Browse files
authored
Merge pull request #62 from RobbinBaauw/dev
[Release] 0.2.0
2 parents ee27c96 + 4cd53e9 commit cb665e2

File tree

134 files changed

+5192
-5404
lines changed

Some content is hidden

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

134 files changed

+5192
-5404
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ matrix:
66
node_js:
77
- "8"
88
- "10"
9+
- "11"
910
before_script:
11+
- cd cshub-shared
12+
- npm install
13+
- cd ..
1014
- cd cshub-client
1115
script:
1216
- npm install
@@ -18,9 +22,13 @@ matrix:
1822
node_js:
1923
- "8"
2024
- "10"
25+
- "11"
2126
before_script:
27+
- cd cshub-shared
28+
- npm install
29+
- cd ..
2230
- cd cshub-server/src/
23-
- cp settings_baseline.ts settings.ts
31+
- cp SettingsBaseline.ts settings.ts
2432
- cd ..
2533
script:
2634
- npm install

cshub-client/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VUE_APP_API_URL=https://api-test.cshub.nl:3001
1+
VUE_APP_API_URL=https://api-dev.cshub.nl
22
VUE_APP_DEBUG=true

cshub-client/.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VUE_APP_API_URL=https://api.cshub.nl
1+
VUE_APP_API_URL=https://api-dev.cshub.nl
22
VUE_APP_DEBUG=false

cshub-client/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
node_modules
33
/dist
44

5+
*.local
6+
57
# Log files
68
npm-debug.log*
79
yarn-debug.log*

cshub-client/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ module.exports = {
77
}
88
]
99
]
10-
}
10+
};

cshub-client/package-lock.json

Lines changed: 2036 additions & 3715 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cshub-client/package.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
11
{
22
"name": "cshub-client",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
77
"build": "vue-cli-service build",
8+
"dev-build": "vue-cli-service build --mode development",
89
"lint": "vue-cli-service lint"
910
},
1011
"dependencies": {
1112
"@babel/polyfill": "^7.0.0-rc.1",
1213
"animate.css": "^3.7.0",
1314
"axios": "^0.18.0",
14-
"jquery": "^3.3.1",
15-
"katex": "^0.7.1",
16-
"moment": "^2.22.2",
15+
"dayjs": "^1.7.7",
16+
"katex": "^0.7.0",
17+
"localforage": "^1.7.3",
18+
"lodash": "^4.17.11",
19+
"quill": "^2.0.0-dev.3",
1720
"quill-delta": "^4.1.0",
1821
"register-service-worker": "^1.0.0",
1922
"rxjs": "^6.3.3",
20-
"vee-validate": "^2.1.0-beta.9",
23+
"vee-validate": "^2.1.2",
2124
"vue": "^2.5.17",
25+
"vue-class-component": "^6.3.2",
26+
"vue-property-decorator": "^7.2.0",
2227
"vue-router": "^3.0.1",
23-
"vuetify": "^1.3.0-alpha.2",
28+
"vuetify": "^1.3.5",
2429
"vuex": "^3.0.1",
2530
"vuex-typex": "^3.0.1"
2631
},
2732
"devDependencies": {
28-
"@mdi/font": "^2.8.94",
29-
"@types/jquery": "^3.3.12",
33+
"@fortawesome/fontawesome-free": "^5.5.0",
3034
"@types/katex": "^0.5.0",
31-
"@vue/cli-plugin-babel": "^3.0.4",
32-
"@vue/cli-plugin-pwa": "^3.0.4",
33-
"@vue/cli-plugin-typescript": "^3.0.4",
34-
"@vue/cli-service": "^3.0.4",
35-
"typescript": "^3.0.0",
36-
"vue-cli-plugin-vuetify": "^0.2.0",
35+
"@types/quill": "^2.0.1",
36+
"@types/lodash": "^4.14.117",
37+
"@vue/cli-plugin-babel": "^3.1.1",
38+
"@vue/cli-plugin-pwa": "^3.1.1",
39+
"@vue/cli-plugin-typescript": "^3.1.1",
40+
"@vue/cli-service": "^3.1.2",
41+
"typescript": "^3.1.6",
42+
"vue-cli-plugin-vuetify": "^0.2.1",
3743
"vue-template-compiler": "^2.5.17"
3844
}
3945
}

cshub-client/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
plugins: {
33
autoprefixer: {}
44
}
5-
}
5+
};

cshub-client/src/plugins/quill/mathquill.min.css renamed to cshub-client/public/assets/mathquill.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cshub-client/public/assets/mathquill.min.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cshub-client/public/index.html

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,23 @@
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
88
<title>CSHub</title>
9+
910
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
10-
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
11+
<link rel="stylesheet" href="/assets/highlight.min.css">
12+
<link rel="stylesheet" href="/assets/mathquill.min.css">
13+
14+
<style>
15+
@font-face {
16+
font-family: "Sailed-Light", "SansSerif";
17+
url(/assets/Sailec-Light.otf)
18+
}
19+
</style>
20+
21+
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
22+
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
23+
crossorigin="anonymous"></script>
24+
<script src="/assets/highlight.pack.min.js"></script>
25+
<script src="/assets/mathquill.min.js"></script>
1126
</head>
1227
<body>
1328
<noscript>
@@ -16,5 +31,13 @@
1631
</noscript>
1732
<div id="app"></div>
1833
<!-- built files will be auto injected -->
34+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-128424047-1"></script>
35+
<script>
36+
window.dataLayer = window.dataLayer || [];
37+
function gtag(){dataLayer.push(arguments);}
38+
gtag('js', new Date());
39+
40+
gtag('config', 'UA-128424047-1');
41+
</script>
1942
</body>
2043
</html>

cshub-client/public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
"display": "standalone",
1313
"background_color": "#000000",
1414
"theme_color": "#00A6D8"
15-
}
15+
}

cshub-client/src/App.vue

Lines changed: 71 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -48,64 +48,86 @@
4848

4949
<script lang="ts">
5050
import {Route} from "vue-router";
51+
import {Component, Watch} from "vue-property-decorator";
52+
import Vue from "vue";
5153
5254
import NavDrawer from "./components/global/NavDrawer.vue";
5355
import Toolbar from "./components/global/Toolbar.vue";
5456
55-
import Vue from "vue";
5657
import uiState from "./store/ui";
57-
import {Routes} from "./views/router/router";
5858
import {LocalStorageData} from "./store/localStorageData";
5959
60-
export default Vue.extend({
60+
import {Routes} from "./views/router/router";
61+
62+
@Component({
6163
name: "App",
6264
components: {NavDrawer, Toolbar},
63-
computed: {
64-
drawerComputed: {
65-
get(): boolean {
66-
return uiState.drawerState;
67-
},
68-
set(newValue: boolean) {
69-
uiState.setDrawerState(newValue);
70-
}
65+
})
66+
export default class App extends Vue {
67+
68+
/**
69+
* Data
70+
*/
71+
private drawerActive = true;
72+
private activeclass = "animated fadeInLeft";
73+
private dialogOpen = false;
74+
75+
/**
76+
* Computed properties
77+
*/
78+
get drawerComputed(): boolean {
79+
return uiState.drawerState;
80+
}
81+
set drawerComputed(newValue: boolean) {
82+
uiState.setDrawerState(newValue);
83+
}
84+
85+
/**
86+
* Watchers
87+
*/
88+
@Watch("$route")
89+
private routeChanged(to: Route, from: Route) {
90+
const excludeTransition = (from.fullPath === Routes.INDEX && to.name === "post") ||
91+
(to.fullPath === Routes.INDEX && from.name === "post") ||
92+
(from.name === "user" && to.name === "post") ||
93+
(from.name === "admin" && to.name === "post") ||
94+
(to.fullPath === Routes.SEARCH) ||
95+
(from.fullPath === Routes.SEARCH);
96+
97+
if (excludeTransition) {
98+
this.activeclass = "";
99+
} else {
100+
this.activeclass = "animated fadeInLeft";
71101
}
72-
},
73-
data() {
74-
return {
75-
drawerActive: true as boolean,
76-
activeclass: "animated fadeInLeft" as string,
77-
dialogOpen: false
78-
};
79-
},
80-
mounted() {
102+
}
103+
104+
/**
105+
* Lifecycle hooks
106+
*/
107+
private mounted() {
81108
if (localStorage.getItem(LocalStorageData.DIALOGOPENED) !== "true") {
82109
this.dialogOpen = true;
83110
}
84-
},
85-
methods: {
86-
closeDialog() {
87-
this.dialogOpen = false;
88-
localStorage.setItem(LocalStorageData.DIALOGOPENED, "true");
89-
}
90-
},
91-
watch: {
92-
$route(to: Route, from: Route) {
93-
if (from.fullPath === Routes.INDEX && to.name === "post") {
94-
this.activeclass = "";
95-
} else if (to.fullPath === Routes.INDEX && from.name === "post") {
96-
this.activeclass = "";
97-
} else {
98-
this.activeclass = "animated fadeInLeft";
99-
}
100-
}
101111
}
102-
});
112+
113+
/**
114+
* Methods
115+
*/
116+
private closeDialog() {
117+
this.dialogOpen = false;
118+
localStorage.setItem(LocalStorageData.DIALOGOPENED, "true");
119+
}
120+
}
103121
</script>
104122
<style>
105123
#app {
106124
background: white;
107125
}
108126
127+
.v-icon {
128+
font-size: 17px !important;
129+
}
130+
109131
a {
110132
text-decoration: none !important;
111133
}
@@ -127,4 +149,15 @@
127149
border-radius: 10px;
128150
background: #6d6d6d;
129151
}
152+
153+
@font-face {
154+
font-family: 'SailecLight';
155+
src: url("../public/assets/Sailec-Light.otf");
156+
}
157+
158+
.ql-editor {
159+
border: none;
160+
font-family: 'SailecLight', sans-serif;
161+
}
162+
130163
</style>

cshub-client/src/assets/logo.png

-5.54 KB
Binary file not shown.

0 commit comments

Comments
 (0)