diff --git a/_assets/package.json b/_assets/package.json
index a8d63b3f..15cab355 100644
--- a/_assets/package.json
+++ b/_assets/package.json
@@ -10,6 +10,7 @@
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
+ "codemirror": "^5.27.4",
"filesize": "^3.5.10",
"hammerjs": "^2.0.8",
"moment": "^2.18.1",
diff --git a/_assets/src/components/Main.vue b/_assets/src/components/Main.vue
index 2205cc2e..e67d69c6 100644
--- a/_assets/src/components/Main.vue
+++ b/_assets/src/components/Main.vue
@@ -171,6 +171,7 @@ export default {
},
created () {
this.fetchData()
+ this.$store.commit('showHover', 'error')
},
watch: {
'$route': 'fetchData',
diff --git a/_assets/src/components/prompts/Error.vue b/_assets/src/components/prompts/Error.vue
new file mode 100644
index 00000000..9610aca0
--- /dev/null
+++ b/_assets/src/components/prompts/Error.vue
@@ -0,0 +1,23 @@
+
+
+
error_outline
+
Something went wrong
+
{{ error }}
+
+
+
+
+
+
+
+
diff --git a/_assets/src/components/prompts/Prompts.vue b/_assets/src/components/prompts/Prompts.vue
index f3de27a7..13926fa6 100644
--- a/_assets/src/components/prompts/Prompts.vue
+++ b/_assets/src/components/prompts/Prompts.vue
@@ -8,6 +8,7 @@
+
@@ -20,6 +21,7 @@ import Delete from './Delete'
import Rename from './Rename'
import Download from './Download'
import Move from './Move'
+import Error from './Error'
import NewFile from './NewFile'
import NewDir from './NewDir'
import { mapState } from 'vuex'
@@ -30,6 +32,7 @@ export default {
Info,
Delete,
Rename,
+ Error,
Download,
Move,
NewFile,
@@ -38,6 +41,7 @@ export default {
},
computed: {
...mapState(['show']),
+ showError: function () { return this.show === 'error' },
showInfo: function () { return this.show === 'info' },
showHelp: function () { return this.show === 'help' },
showDelete: function () { return this.show === 'delete' },
diff --git a/_assets/src/css/mobile.css b/_assets/src/css/mobile.css
index 0d231783..84b91207 100644
--- a/_assets/src/css/mobile.css
+++ b/_assets/src/css/mobile.css
@@ -17,10 +17,10 @@
z-index: 99999;
background: #fff;
height: 100%;
- width: 13em;
+ width: 16em;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
transition: .1s ease left;
- left: -14em;
+ left: -17em;
}
nav.active {
left: 0;
diff --git a/_assets/src/css/prompts.css b/_assets/src/css/prompts.css
index f5c7f739..3c7b87f8 100644
--- a/_assets/src/css/prompts.css
+++ b/_assets/src/css/prompts.css
@@ -64,6 +64,22 @@
background-color: #e9eaeb;
}
+.prompt.error i {
+ color: #F44336;
+ display: block;
+ margin: 0 auto .15em;
+ text-align: center;
+ font-size: 5em;
+}
+
+.prompt.error h3 {
+ text-align: center;
+}
+
+.prompt.error button:not(.cancel) {
+ background-color: #F44336
+}
+
/* * * * * * * * * * * * * * * *
* PROMPT - MOVE *