Browse Source

improved

tags/vopendata0.1.2
palytoxin 5 years ago
parent
commit
dd607d3150
5 changed files with 5 additions and 20 deletions
  1. +4
    -3
      models/error.go
  2. +0
    -13
      package-lock.json
  3. +0
    -1
      package.json
  4. +1
    -0
      templates/repo/datasets/dataset.tmpl
  5. +0
    -3
      web_src/js/index.js

+ 4
- 3
models/error.go View File

@@ -6,8 +6,9 @@
package models

import (
"code.gitea.io/gitea/modules/git"
"fmt"

"code.gitea.io/gitea/modules/git"
)

// ErrNotExist represents a non-exist error.
@@ -1973,8 +1974,8 @@ func (err ErrOAuthApplicationNotFound) Error() string {

// ErrFileChunkNotExist represents a "FileChunkNotExist" kind of error.
type ErrFileChunkNotExist struct {
Md5 string
Uuid string
Md5 string
Uuid string
}

func (err ErrFileChunkNotExist) Error() string {


+ 0
- 13
package-lock.json View File

@@ -12027,11 +12027,6 @@
}
}
},
"simple-uploader.js": {
"version": "0.5.4",
"resolved": "https://registry.npmjs.org/simple-uploader.js/-/simple-uploader.js-0.5.4.tgz",
"integrity": "sha512-Dmysgp0wyKqGdnZ9qnxS7QTg/Hfr25GxKM2XlrEnmzSPFmKroFqzW4Qaq/AbJDBvXv4YPGqS3S5YfVI3UxAU0A=="
},
"slash": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
@@ -14341,14 +14336,6 @@
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.3.4.tgz",
"integrity": "sha512-SdKRBeoXUjaZ9R/8AyxsdTqkOfMcI5tWxPZOUX5Ie1BTL5rPSZ0O++pbiZCeYeythiZIdLEfkDiQPKIaWk5hDg=="
},
"vue-simple-uploader": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/vue-simple-uploader/-/vue-simple-uploader-0.7.4.tgz",
"integrity": "sha512-33uv07lkVj7m9gI7IIrQHAUcZkvl70g55lxnfnO/MZ8icwqiemW9Ah4ZexGWNrEfL1p6fV54PlOGICU17aBPFQ==",
"requires": {
"simple-uploader.js": "^0.5.4"
}
},
"vue-style-loader": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/vue-style-loader/-/vue-style-loader-4.1.2.tgz",


+ 0
- 1
package.json View File

@@ -46,7 +46,6 @@
"vue-calendar-heatmap": "0.8.4",
"vue-loader": "15.9.2",
"vue-router": "3.3.4",
"vue-simple-uploader": "0.7.4",
"vue-template-compiler": "2.6.11",
"webpack": "4.43.0",
"webpack-cli": "3.3.11",


+ 1
- 0
templates/repo/datasets/dataset.tmpl View File

@@ -3,5 +3,6 @@
<label>{{.i18n.Tr "dataset.file"}}</label>
<div class="files"></div>
<div class="ui dropzone" id="dataset" data-upload-url="{{.url}}" data-uuid="{{.uuid}}" data-add-url="{{AppSubUrl}}/attachments/add" data-accepts="{{.AttachmentAllowedTypes}}" data-remove-url="{{AppSubUrl}}/attachments/delete" data-csrf="{{.CsrfToken}}" dataset-id={{.dataset.ID}} data-max-file="100" data-dataset-id="{{.dataset.ID}}" data-max-size="{{.AttachmentMaxSize}}" data-default-message="{{.i18n.Tr "dropzone.default_message"}}" data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}" data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}" data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}">
</div>
</div>
</div>

+ 0
- 3
web_src/js/index.js View File

@@ -8,7 +8,6 @@ import './polyfills.js';
import Vue from 'vue';
import 'jquery.are-you-sure';
import './vendor/semanticdropdown.js';
import VueSimpleUploader from 'vue-simple-uploader';
import {svg} from './utils.js';

import initContextPopups from './features/contextpopup.js';
@@ -24,8 +23,6 @@ import {initNotificationsTable, initNotificationCount} from './features/notifica
import {createCodeEditor} from './features/codeeditor.js';
import MinioUploader from './components/MinioUploader.vue';

Vue.use(VueSimpleUploader);

const {AppSubUrl, StaticUrlPrefix, csrf} = window.config;

function htmlEncode(text) {


Loading…
Cancel
Save