mango-cms 0.2.22 → 0.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +4 -3
- package/default/package.json +1 -1
- package/default/src/components/layout/login.vue +4 -1
- package/package.json +1 -1
- package/webpack.config.js +7 -1
package/cli.js
CHANGED
|
@@ -400,8 +400,8 @@ server {
|
|
|
400
400
|
root ${buildPath.replace('/build', '/dist')};
|
|
401
401
|
index index.html;
|
|
402
402
|
|
|
403
|
-
# Serve static files directly
|
|
404
|
-
location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|otf|json)$ {
|
|
403
|
+
# Serve static files directly if they exist
|
|
404
|
+
location ~* \.(?:js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot|otf|json|html)$ {
|
|
405
405
|
expires 1y;
|
|
406
406
|
access_log off;
|
|
407
407
|
add_header Cache-Control "public";
|
|
@@ -413,8 +413,9 @@ server {
|
|
|
413
413
|
}
|
|
414
414
|
` : ''}
|
|
415
415
|
|
|
416
|
+
# All other routes go to the fallback unless the file exists
|
|
416
417
|
location / {
|
|
417
|
-
try_files $uri
|
|
418
|
+
try_files $uri @fallback;
|
|
418
419
|
}
|
|
419
420
|
|
|
420
421
|
location @fallback {
|
package/default/package.json
CHANGED
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
|
|
34
34
|
<template v-else>
|
|
35
|
-
<div class="text-
|
|
35
|
+
<div class="-mb-4 uppercase opacity-50 tracking-widest text-sm">Login</div>
|
|
36
|
+
<div class="text-2xl">{{ siteName }}</div>
|
|
36
37
|
<input type="email" v-model.trim="user.email" placeholder="Email" />
|
|
37
38
|
<input type="password" v-model.trim="user.password" placeholder="Password" autocomplete="current-password" />
|
|
38
39
|
</template>
|
|
@@ -59,6 +60,7 @@
|
|
|
59
60
|
import Swal from 'sweetalert2'
|
|
60
61
|
import { validateEmail } from '../../helpers/email'
|
|
61
62
|
import { getUser } from '../../helpers/user'
|
|
63
|
+
import { siteName } from '@settings'
|
|
62
64
|
|
|
63
65
|
// Function for setting cookies
|
|
64
66
|
let setCookie = function (cname, cvalue) {
|
|
@@ -72,6 +74,7 @@ export default {
|
|
|
72
74
|
inject: ['store','axios'],
|
|
73
75
|
data() {
|
|
74
76
|
return {
|
|
77
|
+
siteName,
|
|
75
78
|
user: {
|
|
76
79
|
email: null,
|
|
77
80
|
password: null,
|
package/package.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -27,12 +27,18 @@ module.exports = {
|
|
|
27
27
|
mode: 'production',
|
|
28
28
|
resolve: {
|
|
29
29
|
alias: {
|
|
30
|
+
|
|
31
|
+
'@mango$': path.resolve(mangoRoot, 'src/cms/exports'),
|
|
32
|
+
'@mango': path.resolve(userProjectRoot, legacyMode ? 'config' : 'mango'),
|
|
33
|
+
|
|
30
34
|
'@cms': path.resolve(mangoRoot, 'src/cms'),
|
|
31
35
|
'@config': path.resolve(userProjectRoot, legacyMode ? 'config' : 'mango'),
|
|
32
|
-
'@
|
|
36
|
+
'@settings': path.resolve(userProjectRoot, legacyMode ? 'config/config/settings.json' : 'mango/config/settings.json'),
|
|
33
37
|
'@fields': path.resolve(mangoRoot, 'src/cms/1. build/fields'),
|
|
34
38
|
'@mongo': path.resolve(mangoRoot, 'src/cms/1. build/libraries/mongo'),
|
|
39
|
+
'@query': path.resolve(mangoRoot, 'src/cms/1. build/libraries/mongo'),
|
|
35
40
|
'@helpers': path.resolve(mangoRoot, 'src/cms/1. build/helpers'),
|
|
41
|
+
'@main': path.resolve(mangoRoot, 'src/cms/2. process/0. main'),
|
|
36
42
|
},
|
|
37
43
|
},
|
|
38
44
|
devtool: 'inline-source-map',
|