updated deps

This commit is contained in:
Graham Steffaniak 2023-07-04 20:38:56 -05:00
parent 665a1c68cf
commit ebb1e02e32
8 changed files with 4839 additions and 22268 deletions

6
package-lock.json generated Normal file
View File

@ -0,0 +1,6 @@
{
"name": "filebrowser",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}

View File

@ -1,13 +0,0 @@
//go:build !dev
// +build !dev
package frontend
import "embed"
//go:embed dist/*
var assets embed.FS
func Assets() embed.FS {
return assets
}

View File

@ -1,15 +0,0 @@
//go:build dev
// +build dev
package frontend
import (
"io/fs"
"os"
)
var assets fs.FS = os.DirFS("frontend")
func Assets() fs.FS {
return assets
}

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,6 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --no-clean", "build": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --no-clean",
"lint": "npx vue-cli-service lint --no-fix --max-warnings=0",
"fix": "npx vue-cli-service lint", "fix": "npx vue-cli-service lint",
"watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean" "watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean"
}, },
@ -23,6 +22,7 @@
"noty": "^3.2.0-beta", "noty": "^3.2.0-beta",
"pretty-bytes": "^6.0.0", "pretty-bytes": "^6.0.0",
"qrcode.vue": "^1.7.0", "qrcode.vue": "^1.7.0",
"semver": "^7.5.3",
"utif": "^3.1.0", "utif": "^3.1.0",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-async-computed": "^3.9.0", "vue-async-computed": "^3.9.0",
@ -35,33 +35,14 @@
"whatwg-fetch": "^3.6.2" "whatwg-fetch": "^3.6.2"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "^4.1.2", "@vue/cli-plugin-babel": "^5.0.8",
"@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-service": "^5.0.8",
"@vue/cli-service": "^4.1.2", "compression-webpack-plugin": "^10.0.0",
"@vue/eslint-config-prettier": "^6.0.0", "depcheck": "^1.4.3",
"babel-eslint": "^10.1.0", "file-loader": "^6.2.0",
"compression-webpack-plugin": "^6.0.3",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^6.2.2",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.6.10"
}, },
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended",
"@vue/prettier"
],
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
}
},
"postcss": { "postcss": {
"plugins": { "plugins": {
"autoprefixer": {} "autoprefixer": {}

View File

@ -37,7 +37,6 @@
<script> <script>
import { enableThumbs } from "@/utils/constants"; import { enableThumbs } from "@/utils/constants";
import { mapMutations, mapGetters, mapState } from "vuex"; import { mapMutations, mapGetters, mapState } from "vuex";
import filesize from "filesize";
import moment from "moment"; import moment from "moment";
import { files as api } from "@/api"; import { files as api } from "@/api";
import * as upload from "@/utils/upload"; import * as upload from "@/utils/upload";
@ -98,7 +97,7 @@ export default {
methods: { methods: {
...mapMutations(["addSelected", "removeSelected", "resetSelected"]), ...mapMutations(["addSelected", "removeSelected", "resetSelected"]),
humanSize: function () { humanSize: function () {
return this.type == "invalid_link" ? "invalid link" : filesize(this.size); return this.type == "invalid_link" ? "invalid link" : this.size;
}, },
humanTime: function () { humanTime: function () {
if (this.readOnly == undefined && this.user.dateFormat) { if (this.readOnly == undefined && this.user.dateFormat) {

View File

@ -81,7 +81,6 @@
<script> <script>
import { mapState, mapGetters } from "vuex"; import { mapState, mapGetters } from "vuex";
import filesize from "filesize";
import moment from "moment"; import moment from "moment";
import { files as api } from "@/api"; import { files as api } from "@/api";
@ -92,7 +91,7 @@ export default {
...mapGetters(["selectedCount", "isListing"]), ...mapGetters(["selectedCount", "isListing"]),
humanSize: function () { humanSize: function () {
if (this.selectedCount === 0 || !this.isListing) { if (this.selectedCount === 0 || !this.isListing) {
return filesize(this.req.size); return this.req.size;
} }
let sum = 0; let sum = 0;
@ -101,7 +100,7 @@ export default {
sum += this.req.items[selected].size; sum += this.req.items[selected].size;
} }
return filesize(sum); return sum;
}, },
humanTime: function () { humanTime: function () {
if (this.selectedCount === 0) { if (this.selectedCount === 0) {

View File

@ -182,7 +182,6 @@
<script> <script>
import { mapState, mapMutations, mapGetters } from "vuex"; import { mapState, mapMutations, mapGetters } from "vuex";
import { pub as api } from "@/api"; import { pub as api } from "@/api";
import filesize from "filesize";
import moment from "moment"; import moment from "moment";
import HeaderBar from "@/components/header/HeaderBar"; import HeaderBar from "@/components/header/HeaderBar";
@ -255,8 +254,7 @@ export default {
if (this.req.isDir) { if (this.req.isDir) {
return this.req.items.length; return this.req.items.length;
} }
return this.req.size;
return filesize(this.req.size);
}, },
humanTime: function () { humanTime: function () {
return moment(this.req.modified).fromNow(); return moment(this.req.modified).fromNow();