upate cockpit plugins
23
cockpit/appstore/.gitignore
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/.pnp
|
||||
.pnp.js
|
||||
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
#/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
70
cockpit/appstore/README.md
Normal file
@ -0,0 +1,70 @@
|
||||
# Getting Started with Create React App
|
||||
|
||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||
|
||||
## Available Scripts
|
||||
|
||||
In the project directory, you can run:
|
||||
|
||||
### `npm start`
|
||||
|
||||
Runs the app in the development mode.\
|
||||
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
||||
|
||||
The page will reload when you make changes.\
|
||||
You may also see any lint errors in the console.
|
||||
|
||||
### `npm test`
|
||||
|
||||
Launches the test runner in the interactive watch mode.\
|
||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||
|
||||
### `npm run build`
|
||||
|
||||
Builds the app for production to the `build` folder.\
|
||||
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||
|
||||
The build is minified and the filenames include the hashes.\
|
||||
Your app is ready to be deployed!
|
||||
|
||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||
|
||||
### `npm run eject`
|
||||
|
||||
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
||||
|
||||
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||
|
||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
||||
|
||||
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
||||
|
||||
## Learn More
|
||||
|
||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||
|
||||
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||
|
||||
### Code Splitting
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
||||
|
||||
### Analyzing the Bundle Size
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
||||
|
||||
### Making a Progressive Web App
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
||||
|
||||
### Advanced Configuration
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
||||
|
||||
### Deployment
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
||||
|
||||
### `npm run build` fails to minify
|
||||
|
||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
@ -1,15 +1,15 @@
|
||||
{
|
||||
"files": {
|
||||
"main.css": "./static/css/main.751babb1.css",
|
||||
"main.js": "./static/js/main.2f325e07.js",
|
||||
"static/js/918.49889c01.chunk.js": "./static/js/918.49889c01.chunk.js",
|
||||
"static/js/613.c65d15ce.chunk.js": "./static/js/613.c65d15ce.chunk.js",
|
||||
"main.js": "./static/js/main.f4237492.js",
|
||||
"static/js/918.93f336ff.chunk.js": "./static/js/918.93f336ff.chunk.js",
|
||||
"static/js/613.7c0baeef.chunk.js": "./static/js/613.7c0baeef.chunk.js",
|
||||
"static/js/376.8d48e784.chunk.js": "./static/js/376.8d48e784.chunk.js",
|
||||
"static/js/426.9f5f69c7.chunk.js": "./static/js/426.9f5f69c7.chunk.js",
|
||||
"static/js/631.31672b05.chunk.js": "./static/js/631.31672b05.chunk.js",
|
||||
"static/css/836.5576a615.chunk.css": "./static/css/836.5576a615.chunk.css",
|
||||
"static/js/836.06772eb6.chunk.js": "./static/js/836.06772eb6.chunk.js",
|
||||
"static/js/28.2390613e.chunk.js": "./static/js/28.2390613e.chunk.js",
|
||||
"static/js/28.11f100a1.chunk.js": "./static/js/28.11f100a1.chunk.js",
|
||||
"static/js/494.16df6099.chunk.js": "./static/js/494.16df6099.chunk.js",
|
||||
"static/css/769.c11b83c2.chunk.css": "./static/css/769.c11b83c2.chunk.css",
|
||||
"static/js/769.3b95354d.chunk.js": "./static/js/769.3b95354d.chunk.js",
|
||||
@ -68,15 +68,15 @@
|
||||
"static/media/logo-sm.svg": "./static/media/logo-sm.53b8ca70620b0b2968874a3660f195dd.svg",
|
||||
"index.html": "./index.html",
|
||||
"main.751babb1.css.map": "./static/css/main.751babb1.css.map",
|
||||
"main.2f325e07.js.map": "./static/js/main.2f325e07.js.map",
|
||||
"918.49889c01.chunk.js.map": "./static/js/918.49889c01.chunk.js.map",
|
||||
"613.c65d15ce.chunk.js.map": "./static/js/613.c65d15ce.chunk.js.map",
|
||||
"main.f4237492.js.map": "./static/js/main.f4237492.js.map",
|
||||
"918.93f336ff.chunk.js.map": "./static/js/918.93f336ff.chunk.js.map",
|
||||
"613.7c0baeef.chunk.js.map": "./static/js/613.7c0baeef.chunk.js.map",
|
||||
"376.8d48e784.chunk.js.map": "./static/js/376.8d48e784.chunk.js.map",
|
||||
"426.9f5f69c7.chunk.js.map": "./static/js/426.9f5f69c7.chunk.js.map",
|
||||
"631.31672b05.chunk.js.map": "./static/js/631.31672b05.chunk.js.map",
|
||||
"836.5576a615.chunk.css.map": "./static/css/836.5576a615.chunk.css.map",
|
||||
"836.06772eb6.chunk.js.map": "./static/js/836.06772eb6.chunk.js.map",
|
||||
"28.2390613e.chunk.js.map": "./static/js/28.2390613e.chunk.js.map",
|
||||
"28.11f100a1.chunk.js.map": "./static/js/28.11f100a1.chunk.js.map",
|
||||
"494.16df6099.chunk.js.map": "./static/js/494.16df6099.chunk.js.map",
|
||||
"769.c11b83c2.chunk.css.map": "./static/css/769.c11b83c2.chunk.css.map",
|
||||
"769.3b95354d.chunk.js.map": "./static/js/769.3b95354d.chunk.js.map",
|
||||
@ -86,6 +86,6 @@
|
||||
},
|
||||
"entrypoints": [
|
||||
"static/css/main.751babb1.css",
|
||||
"static/js/main.2f325e07.js"
|
||||
"static/js/main.f4237492.js"
|
||||
]
|
||||
}
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1 +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"/><script type="text/javascript" src="../base1/cockpit.js"></script><script type="text/javascript" src="../*/po.js"></script><link rel="manifest" href="./manifest.json"/><title>App Store</title><script defer="defer" src="./static/js/main.2f325e07.js"></script><link href="./static/css/main.751babb1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" style="height:100%"></div></body></html>
|
||||
<!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"/><script type="text/javascript" src="../base1/cockpit.js"></script><script type="text/javascript" src="../*/po.js"></script><link rel="manifest" href="./manifest.json"/><title>App Store</title><script defer="defer" src="./static/js/main.f4237492.js"></script><link href="./static/css/main.751babb1.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root" style="height:100%"></div></body></html>
|
@ -1,4 +1,5 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"menu": {
|
||||
"appstore": {
|
||||
"label": "App Store",
|
||||
@ -6,6 +7,5 @@
|
||||
"order": -1
|
||||
}
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"content-security-policy": "default-src 'unsafe-inline' 'unsafe-eval' *;font-src * data:;style-src 'unsafe-inline' 'unsafe-eval' *;img-src * data:;connect-src https://graphql.contentful.com/ http://redhattext http://overpass-webfont *"
|
||||
}
|
@ -283,6 +283,10 @@
|
||||
null,
|
||||
"保存中..."
|
||||
],
|
||||
"Portainer": [
|
||||
null,
|
||||
"容器"
|
||||
],
|
||||
"Container": [
|
||||
null,
|
||||
"容器"
|
@ -1,2 +1,2 @@
|
||||
"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[28],{7430:function(s,e,a){a(2791);e.Z=a.p+"static/media/logo.21467f3ddba355981c892c73331678c6.svg"},2028:function(s,e,a){a.r(e),a.d(e,{default:function(){return h}});var n=a(1694),l=a.n(n),t=a(7346),i=a.n(t),o=(a(2791),a(1087));var c=a.p+"static/media/logo-sm.53b8ca70620b0b2968874a3660f195dd.svg",r=a(7430);var d=a.p+"static/media/websoft9.a364f73ed04449bcc81e97399dc8e8de.svg",p=a(184),g=i().gettext,x=i().language,h=function(s){var e=s.hideLogo,a=s.navCssClasses,n=(s.openLeftMenuCallBack,s.topbarDark,a||""),t=e?"":"container-fluid";return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:l()("navbar-custom",n),children:(0,p.jsxs)("div",{className:t,children:[!e&&(0,p.jsxs)(o.rU,{to:"/",className:"topnav-logo",children:[(0,p.jsx)("span",{className:"topnav-logo-lg",children:"zh_CN"===x?(0,p.jsx)("img",{src:r.Z,alt:"logo",width:"99"}):(0,p.jsx)("img",{src:d,alt:"logo",width:"99"})}),(0,p.jsx)("span",{className:"topnav-logo-sm",children:(0,p.jsx)("img",{src:c,alt:"logo",width:"24px",height:"24"})})]}),(0,p.jsxs)("ul",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"row",alignItems:"center",minHeight:"70px",fontSize:"16px",listStyle:"none",marginBottom:"0px"},children:[(0,p.jsx)("li",{style:{margin:"0 10px"},children:(0,p.jsxs)("a",{href:"/myapps",style:{color:"#428bca"},target:"_parent",children:[(0,p.jsx)("i",{className:"dripicons-view-apps"})," ",g("My Apps")]})}),(0,p.jsx)("li",{style:{margin:"0 10px"},children:(0,p.jsxs)("a",{href:"/appstore",style:{color:"#428bca"},target:"_parent",children:[(0,p.jsx)("i",{className:"dripicons-cloud-download"})," ",g("App Store")]})}),(0,p.jsx)("li",{children:(0,p.jsxs)("button",{className:"nav-link dropdown-toggle end-bar-toggle arrow-none btn btn-link shadow-none",style:{color:"#428bca"},children:[(0,p.jsx)("i",{className:"dripicons-gear noti-icon"})," "]})})]})]})})})}}}]);
|
||||
//# sourceMappingURL=28.2390613e.chunk.js.map
|
||||
"use strict";(self.webpackChunkapps=self.webpackChunkapps||[]).push([[28],{7430:function(s,e,a){a(2791);e.Z=a.p+"static/media/logo.21467f3ddba355981c892c73331678c6.svg"},2028:function(s,e,a){a.r(e),a.d(e,{default:function(){return m}});var n=a(1694),o=a.n(n),l=a(7346),t=a.n(l),i=(a(2791),a(1087));var c=a.p+"static/media/logo-sm.53b8ca70620b0b2968874a3660f195dd.svg",r=a(7430);var d=a.p+"static/media/websoft9.a364f73ed04449bcc81e97399dc8e8de.svg",p=a(184),g=t().gettext,x=t().language,m=function(s){var e=s.hideLogo,a=s.navCssClasses,n=(s.openLeftMenuCallBack,s.topbarDark,a||""),l=e?"":"container-fluid";return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)("div",{className:o()("navbar-custom",n),children:(0,p.jsxs)("div",{className:l,children:[!e&&(0,p.jsxs)(i.rU,{to:"/",className:"topnav-logo",children:[(0,p.jsx)("span",{className:"topnav-logo-lg",children:"zh_CN"===x?(0,p.jsx)("img",{src:r.Z,alt:"logo",width:"99"}):(0,p.jsx)("img",{src:d,alt:"logo",width:"99"})}),(0,p.jsx)("span",{className:"topnav-logo-sm",children:(0,p.jsx)("img",{src:c,alt:"logo",width:"24px",height:"24"})})]}),(0,p.jsxs)("ul",{style:{display:"flex",justifyContent:"flex-end",flexDirection:"row",alignItems:"center",minHeight:"70px",fontSize:"16px",listStyle:"none",marginBottom:"0px"},children:[(0,p.jsx)("li",{style:{margin:"0 10px"},children:(0,p.jsxs)("a",{href:"/myapps",style:{color:"#428bca"},target:"_parent",children:[(0,p.jsx)("i",{className:"dripicons-view-apps"})," ",g("My Apps")]})}),(0,p.jsx)("li",{style:{margin:"0 10px"},children:(0,p.jsxs)("a",{href:"/appstore",style:{color:"#428bca"},target:"_parent",children:[(0,p.jsx)("i",{className:"dripicons-cloud-download"})," ",g("App Store")]})}),(0,p.jsx)("li",{children:(0,p.jsxs)("button",{onClick:function(){console.log("b:"+t().location),t().location.go("/system/terminal"),console.log("a:"+t().location)},className:"nav-link dropdown-toggle end-bar-toggle arrow-none btn btn-link shadow-none",style:{color:"#428bca"},children:[(0,p.jsx)("i",{className:"dripicons-gear noti-icon"})," "]})})]})]})})})}}}]);
|
||||
//# sourceMappingURL=28.11f100a1.chunk.js.map
|
2
cockpit/appstore/build/static/js/918.93f336ff.chunk.js
Normal file
Before Width: | Height: | Size: 513 KiB After Width: | Height: | Size: 513 KiB |
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 518 KiB |
Before Width: | Height: | Size: 507 KiB After Width: | Height: | Size: 507 KiB |
Before Width: | Height: | Size: 509 KiB After Width: | Height: | Size: 509 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 270 KiB After Width: | Height: | Size: 270 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 354 KiB After Width: | Height: | Size: 354 KiB |
Before Width: | Height: | Size: 575 KiB After Width: | Height: | Size: 575 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 532 KiB After Width: | Height: | Size: 532 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
14
cockpit/appstore/config-overrides.js
Normal file
@ -0,0 +1,14 @@
|
||||
const CockpitRsyncPlugin = require("./src/lib/cockpit-rsync-plugin");
|
||||
|
||||
const {
|
||||
override,
|
||||
// addWebpackPlugin,
|
||||
addWebpackExternals,
|
||||
} = require('customize-cra')
|
||||
|
||||
module.exports = override(
|
||||
addWebpackExternals({
|
||||
"cockpit": "cockpit"
|
||||
}),
|
||||
// addWebpackPlugin(new CockpitRsyncPlugin()),
|
||||
)
|
7
cockpit/appstore/mk.sh
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
cd /data/stackhub-web/src/apps/build
|
||||
yarn build
|
||||
while [ ! -d "/usr/share/cockpit/appstore" ]; do
|
||||
sleep 1
|
||||
done
|
||||
cp -r ./* /usr/share/cockpit/appstore/
|
29496
cockpit/appstore/package-lock.json
generated
Normal file
64
cockpit/appstore/package.json
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
"name": "apps",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"homepage": ".",
|
||||
"dependencies": {
|
||||
"@apollo/client": "^3.7.9",
|
||||
"@emotion/styled": "^11.10.6",
|
||||
"@mui/icons-material": "^5.11.16",
|
||||
"@mui/material": "^5.12.2",
|
||||
"@patternfly/patternfly": "^4.224.2",
|
||||
"@patternfly/react-core": "^4.276.8",
|
||||
"@testing-library/jest-dom": "^5.16.5",
|
||||
"@testing-library/react": "^13.4.0",
|
||||
"@testing-library/user-event": "^13.5.0",
|
||||
"axios": "^1.3.4",
|
||||
"bootstrap": "5.1.3",
|
||||
"classnames": "^2.3.1",
|
||||
"customize-cra": "^1.0.0",
|
||||
"graphql": "^15.8.0",
|
||||
"md5": "^2.3.0",
|
||||
"react": "^18.2.0",
|
||||
"react-app-rewired": "^2.2.1",
|
||||
"react-bootstrap": "^2.1.2",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-overlays": "^5.2.1",
|
||||
"react-redux": "^7.2.6",
|
||||
"react-router-dom": "^6.2.2",
|
||||
"react-scripts": "^5.0.0",
|
||||
"react-scroll-to-bottom": "^4.2.0",
|
||||
"react-select": "^5.2.2",
|
||||
"react-table": "^7.8.0",
|
||||
"redux-saga": "^1.1.3",
|
||||
"sass": "^1.49.9",
|
||||
"simplebar-react": "^2.3.6",
|
||||
"web-vitals": "^2.1.4",
|
||||
"xterm": "^5.1.0",
|
||||
"xterm-addon-canvas": "^0.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-app-rewired start",
|
||||
"build": "react-app-rewired build",
|
||||
"test": "react-app-rewired test",
|
||||
"eject": "react-app-rewired eject"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"react-app",
|
||||
"react-app/jest"
|
||||
]
|
||||
},
|
||||
"browserslist": {
|
||||
"production": [
|
||||
">0.2%",
|
||||
"not dead",
|
||||
"not op_mini all"
|
||||
],
|
||||
"development": [
|
||||
"last 1 chrome version",
|
||||
"last 1 firefox version",
|
||||
"last 1 safari version"
|
||||
]
|
||||
}
|
||||
}
|
24
cockpit/appstore/public/config.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"PORTAINER": {
|
||||
"PORTAINER_AUTH_URL": "/portainer/api/auth",
|
||||
"PORTAINER_HOME_PAGE": "/portainer",
|
||||
"PORTAINER_USERNAME": "admin",
|
||||
"PORTAINER_PASSWORD": "websoft9@2023"
|
||||
},
|
||||
"NGINXPROXYMANAGER": {
|
||||
"NGINXPROXYMANAGER_AUTH_URL": "/nginxproxymanager/api/tokens",
|
||||
"NGINXPROXYMANAGER_HOME_PAGE": "/nginxproxymanager",
|
||||
"NGINXPROXYMANAGER_USERNAME": "help@websoft9.com",
|
||||
"NGINXPROXYMANAGER_PASSWORD": "websoft9@2023",
|
||||
"NGINXPROXYMANAGER_NIKENAME": "Admin"
|
||||
},
|
||||
"KOPIA": {
|
||||
"KOPIA_HOME_PAGE": "/kopia",
|
||||
"KOPIA_USERNAME": "admin",
|
||||
"KOPIA_PASSWORD": "aiy0eishaichaiL!"
|
||||
},
|
||||
"APPMANAGE": {
|
||||
"APPMANAGE_USERNAME": "websoft9",
|
||||
"APPMANAGE_PASSWORD": "websoft9"
|
||||
}
|
||||
}
|