mirror of
https://github.com/hanzoai/beego.git
synced 2026-11-17 13:19:25 +00:00
Patches against upstream beego/[email protected]: server/web/admin_controller.go — promhttp.Handler → luxfi/metric HTTP handler server/web/filter/prometheus/ — luxfi/metric backend, drops MustRegister client/httplib/filter/prometheus/ — luxfi/metric backend client/orm/filter/prometheus/ — luxfi/metric backend core/config/etcd/config.go — drop grpc-ecosystem/go-grpc-prometheus interceptors (etcd dialing has no observability through this path) Default closure: 0 grpc, 0 protobuf, 0 prometheus/client_golang. Consumers in hanzoai/iam see the fork through workspace mode.
45 lines
958 B
Plaintext
45 lines
958 B
Plaintext
<template>
|
|
<Container>
|
|
<div class="content">
|
|
<h1>
|
|
Upload files
|
|
</h1>
|
|
<div class="forms">
|
|
<FileForm v-bind:files="files['Model']" name="Model" v-on:upload="upload_model" v-on:submit="submit_model">
|
|
</FileForm>
|
|
</div>
|
|
</div>
|
|
</Container>
|
|
</template>
|
|
|
|
<script>
|
|
import axios from 'axios'
|
|
import Container from '@/components/Container.vue'
|
|
import FileForm from '@/components/FileForm.vue'
|
|
|
|
export default {
|
|
name: 'App',
|
|
data: function() {
|
|
return {
|
|
files: {},
|
|
}
|
|
},
|
|
components: {
|
|
Container,
|
|
FileForm
|
|
},
|
|
methods: {
|
|
upload_model: function(file) {
|
|
this.files['Model'] = file
|
|
},
|
|
submit_model: function() {
|
|
let formData = new FormData();
|
|
formData.append('Model', this.files['Model']);
|
|
axios.put('http://' + document.location.host + '/api/upload_model', formData)
|
|
}
|
|
},
|
|
mounted () {
|
|
|
|
}
|
|
}
|
|
</script> |