mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-11-21 01:16:33 +08:00
添加前端编译文件
This commit is contained in:
parent
3f50a3889b
commit
46ea589216
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,6 +4,6 @@ __pycache__
|
||||
install/docker/file
|
||||
myapp/static/file
|
||||
myapp/test
|
||||
/myapp/static/appbuilder/vison/*
|
||||
#/myapp/static/appbuilder/vison/*
|
||||
/myapp/static/appbuilder/mnt
|
||||
/myapp/static/appbuilder/assets/
|
||||
|
@ -3,7 +3,8 @@ for namespace in 'infra' 'kubeflow' 'istio-system' 'knative-serving' 'pipeline'
|
||||
do
|
||||
kubectl create ns $namespace
|
||||
kubectl delete secret docker-registry hubsecret -n $namespace
|
||||
kubectl create secret docker-registry hubsecret --docker-username=xxx --docker-password=xxxx -n $namespace
|
||||
kubectl create secret docker-registry hubsecret --docker-server=https://index.docker.io/v1/ --docker-username=xxx --docker-password=xxxx -n $namespace
|
||||
# kubectl create secret docker-registry oa-hubsecret --docker-server=docker.oa.com:8080 --docker-username=xxx --docker-password=xxxx -n $namespace
|
||||
kubectl label ns $namespace istio-injection=disabled --overwrite
|
||||
# kubectl label namespace $namespace istio-inhection=enabled --overwrite
|
||||
done
|
||||
|
19
myapp/static/appbuilder/vison/asset-manifest.json
Normal file
19
myapp/static/appbuilder/vison/asset-manifest.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"files": {
|
||||
"main.js": "./static/js/main.ff225858.js",
|
||||
"static/js/805.53e76136.chunk.js": "./static/js/805.53e76136.chunk.js",
|
||||
"static/js/31.c3bb78a9.chunk.js": "./static/js/31.c3bb78a9.chunk.js",
|
||||
"static/js/392.6cc16ad5.chunk.js": "./static/js/392.6cc16ad5.chunk.js",
|
||||
"static/js/127.bc34d4d5.chunk.js": "./static/js/127.bc34d4d5.chunk.js",
|
||||
"static/css/257.dc955ca1.chunk.css": "./static/css/257.dc955ca1.chunk.css",
|
||||
"static/js/257.b1982694.chunk.js": "./static/js/257.b1982694.chunk.js",
|
||||
"static/js/46.d003bec7.chunk.js": "./static/js/46.d003bec7.chunk.js",
|
||||
"json.worker.js": "./json.worker.js",
|
||||
"editor.worker.js": "./editor.worker.js",
|
||||
"static/media/codicon.ttf": "./static/media/codicon.00aa018e3ae78d50160b.ttf",
|
||||
"index.html": "./index.html"
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/js/main.ff225858.js"
|
||||
]
|
||||
}
|
1
myapp/static/appbuilder/vison/editor.worker.js
Normal file
1
myapp/static/appbuilder/vison/editor.worker.js
Normal file
File diff suppressed because one or more lines are too long
BIN
myapp/static/appbuilder/vison/favicon.ico
Normal file
BIN
myapp/static/appbuilder/vison/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
1
myapp/static/appbuilder/vison/index.html
Normal file
1
myapp/static/appbuilder/vison/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Web site created using create-react-app"/><link rel="manifest" href="./manifest.json"/><title>机器学习平台</title><script defer="defer" src="./static/js/main.ff225858.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="app"></div></body></html>
|
1
myapp/static/appbuilder/vison/json.worker.js
Normal file
1
myapp/static/appbuilder/vison/json.worker.js
Normal file
File diff suppressed because one or more lines are too long
15
myapp/static/appbuilder/vison/manifest.json
Normal file
15
myapp/static/appbuilder/vison/manifest.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"short_name": "machine_learnring",
|
||||
"name": "tme_machine_learnring_platform",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
3
myapp/static/appbuilder/vison/robots.txt
Normal file
3
myapp/static/appbuilder/vison/robots.txt
Normal file
@ -0,0 +1,3 @@
|
||||
# https://www.robotstxt.org/robotstxt.html
|
||||
User-agent: *
|
||||
Disallow:
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* Draggabilly v2.3.0
|
||||
* Make that shiz draggable
|
||||
* https://draggabilly.desandro.com
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Unidragger v2.3.1
|
||||
* Draggable base class
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*!
|
||||
* Unipointer v2.3.0
|
||||
* base class for doing one thing with pointer event
|
||||
* MIT license
|
||||
*/
|
||||
|
||||
/*!
|
||||
* getSize v2.0.3
|
||||
* measure size of elements
|
||||
* MIT license
|
||||
*/
|
File diff suppressed because one or more lines are too long
2
myapp/static/appbuilder/vison/static/js/main.ff225858.js
Normal file
2
myapp/static/appbuilder/vison/static/js/main.ff225858.js
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,72 @@
|
||||
/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/
|
||||
|
||||
/*!
|
||||
* cookie
|
||||
* Copyright(c) 2012-2014 Roman Shtylman
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
/*! *****************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
|
||||
/** @license React v0.20.2
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v16.13.1
|
||||
* react-is.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
/** @license React v17.0.2
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
Binary file not shown.
@ -907,9 +907,9 @@ class K8s():
|
||||
cred_payload = {
|
||||
"auths": {
|
||||
server: {
|
||||
"username": user,
|
||||
"password": password,
|
||||
"auth": base64.b64encode((user+":"+password).encode()).decode(),
|
||||
"Username": user,
|
||||
"Password": password,
|
||||
"Email": ''
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1647,10 +1647,11 @@ def check_status_time(status,hour=8):
|
||||
|
||||
return status
|
||||
|
||||
#
|
||||
|
||||
# if __name__=='__main__':
|
||||
# k8s_client = K8s(file_path='~/.kube/config')
|
||||
#
|
||||
# k8s_client.apply_hubsecret(namespace='',name,user,password,serve)
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -105,7 +105,7 @@ class Repository_ModelView_Base():
|
||||
def apply_hubsecret(self,hubsecret):
|
||||
from myapp.utils.py.py_k8s import K8s
|
||||
all_cluster=conf.get('CLUSTERS',{})
|
||||
all_kubeconfig = [all_cluster[cluster]['KUBECONFIG'] for cluster in all_cluster]+['']
|
||||
all_kubeconfig = [all_cluster[cluster].get('KUBECONFIG','') for cluster in all_cluster]+['']
|
||||
all_kubeconfig = list(set(all_kubeconfig))
|
||||
for kubeconfig in all_kubeconfig:
|
||||
k8s = K8s(kubeconfig)
|
||||
|
Loading…
Reference in New Issue
Block a user