Browse Source

update apphub source

qiaofeng1227 1 year ago
parent
commit
4bcdf0cb5d

+ 0 - 3
apphub/src/apphub.egg-info/PKG-INFO

@@ -1,3 +0,0 @@
-Metadata-Version: 2.1
-Name: apphub
-Version: 0.2

+ 0 - 10
apphub/src/apphub.egg-info/SOURCES.txt

@@ -1,10 +0,0 @@
-README.md
-setup.py
-src/apphub.egg-info/PKG-INFO
-src/apphub.egg-info/SOURCES.txt
-src/apphub.egg-info/dependency_links.txt
-src/apphub.egg-info/entry_points.txt
-src/apphub.egg-info/requires.txt
-src/apphub.egg-info/top_level.txt
-src/cli/__init__.py
-src/cli/apphub_cli.py

+ 0 - 1
apphub/src/apphub.egg-info/dependency_links.txt

@@ -1 +0,0 @@
-

+ 0 - 2
apphub/src/apphub.egg-info/entry_points.txt

@@ -1,2 +0,0 @@
-[console_scripts]
-apphub = cli.apphub_cli:cli

+ 0 - 1
apphub/src/apphub.egg-info/requires.txt

@@ -1 +0,0 @@
-click

+ 0 - 1
apphub/src/apphub.egg-info/top_level.txt

@@ -1 +0,0 @@
-cli

BIN
apphub/swagger-ui/favicon-16x16.png


BIN
apphub/swagger-ui/favicon-32x32.png


+ 0 - 16
apphub/swagger-ui/index.css

@@ -1,16 +0,0 @@
-html {
-    box-sizing: border-box;
-    overflow: -moz-scrollbars-vertical;
-    overflow-y: scroll;
-}
-
-*,
-*:before,
-*:after {
-    box-sizing: inherit;
-}
-
-body {
-    margin: 0;
-    background: #fafafa;
-}

+ 0 - 19
apphub/swagger-ui/index.html

@@ -1,19 +0,0 @@
-<!-- HTML for static distribution bundle build -->
-<!DOCTYPE html>
-<html lang="en">
-  <head>
-    <meta charset="UTF-8">
-    <title>Swagger UI</title>
-    <link rel="stylesheet" type="text/css" href="./swagger-ui.css" />
-    <link rel="stylesheet" type="text/css" href="index.css" />
-    <link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
-    <link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
-  </head>
-
-  <body>
-    <div id="swagger-ui"></div>
-    <script src="./swagger-ui-bundle.js" charset="UTF-8"> </script>
-    <script src="./swagger-ui-standalone-preset.js" charset="UTF-8"> </script>
-    <script src="./swagger-initializer.js" charset="UTF-8"> </script>
-  </body>
-</html>

+ 0 - 79
apphub/swagger-ui/oauth2-redirect.html

@@ -1,79 +0,0 @@
-<!doctype html>
-<html lang="en-US">
-<head>
-    <title>Swagger UI: OAuth2 Redirect</title>
-</head>
-<body>
-<script>
-    'use strict';
-    function run () {
-        var oauth2 = window.opener.swaggerUIRedirectOauth2;
-        var sentState = oauth2.state;
-        var redirectUrl = oauth2.redirectUrl;
-        var isValid, qp, arr;
-
-        if (/code|token|error/.test(window.location.hash)) {
-            qp = window.location.hash.substring(1).replace('?', '&');
-        } else {
-            qp = location.search.substring(1);
-        }
-
-        arr = qp.split("&");
-        arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
-        qp = qp ? JSON.parse('{' + arr.join() + '}',
-                function (key, value) {
-                    return key === "" ? value : decodeURIComponent(value);
-                }
-        ) : {};
-
-        isValid = qp.state === sentState;
-
-        if ((
-          oauth2.auth.schema.get("flow") === "accessCode" ||
-          oauth2.auth.schema.get("flow") === "authorizationCode" ||
-          oauth2.auth.schema.get("flow") === "authorization_code"
-        ) && !oauth2.auth.code) {
-            if (!isValid) {
-                oauth2.errCb({
-                    authId: oauth2.auth.name,
-                    source: "auth",
-                    level: "warning",
-                    message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
-                });
-            }
-
-            if (qp.code) {
-                delete oauth2.state;
-                oauth2.auth.code = qp.code;
-                oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
-            } else {
-                let oauthErrorMsg;
-                if (qp.error) {
-                    oauthErrorMsg = "["+qp.error+"]: " +
-                        (qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
-                        (qp.error_uri ? "More info: "+qp.error_uri : "");
-                }
-
-                oauth2.errCb({
-                    authId: oauth2.auth.name,
-                    source: "auth",
-                    level: "error",
-                    message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
-                });
-            }
-        } else {
-            oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
-        }
-        window.close();
-    }
-
-    if (document.readyState !== 'loading') {
-        run();
-    } else {
-        document.addEventListener('DOMContentLoaded', function () {
-            run();
-        });
-    }
-</script>
-</body>
-</html>

File diff suppressed because it is too large
+ 0 - 1
apphub/swagger-ui/redoc.standalone.js


+ 0 - 20
apphub/swagger-ui/swagger-initializer.js

@@ -1,20 +0,0 @@
-window.onload = function() {
-  //<editor-fold desc="Changeable Configuration Block">
-
-  // the following lines will be replaced by docker/configurator, when it runs in a docker-container
-  window.ui = SwaggerUIBundle({
-    url: "https://petstore.swagger.io/v2/swagger.json",
-    dom_id: '#swagger-ui',
-    deepLinking: true,
-    presets: [
-      SwaggerUIBundle.presets.apis,
-      SwaggerUIStandalonePreset
-    ],
-    plugins: [
-      SwaggerUIBundle.plugins.DownloadUrl
-    ],
-    layout: "StandaloneLayout"
-  });
-
-  //</editor-fold>
-};

File diff suppressed because it is too large
+ 0 - 1
apphub/swagger-ui/swagger-ui-bundle.js


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui-bundle.js.map


File diff suppressed because it is too large
+ 0 - 1
apphub/swagger-ui/swagger-ui-es-bundle-core.js


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui-es-bundle-core.js.map


File diff suppressed because it is too large
+ 0 - 1
apphub/swagger-ui/swagger-ui-es-bundle.js


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui-es-bundle.js.map


File diff suppressed because it is too large
+ 0 - 1
apphub/swagger-ui/swagger-ui-standalone-preset.js


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui-standalone-preset.js.map


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui.css


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui.css.map


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui.js


File diff suppressed because it is too large
+ 0 - 0
apphub/swagger-ui/swagger-ui.js.map


+ 1 - 1
docker/apphub/Dockerfile

@@ -1,4 +1,4 @@
-# modify time: 202311020830, you can modify here to trigger Docker Build action
+# modify time: 202311020906, you can modify here to trigger Docker Build action
 
 FROM python:3.10-slim-bullseye
 LABEL maintainer="Websoft9<help@websoft9.com>"

Some files were not shown because too many files changed in this diff