Răsfoiți Sursa

chore: clear amplify related codes

charlie 5 zile în urmă
părinte
comite
d9b44aae34

+ 0 - 2
gulpfile.js

@@ -79,7 +79,6 @@ const common = {
         'node_modules/marked/marked.min.js',
         'node_modules/@highlightjs/cdn-assets/highlight.min.js',
         'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js',
-        'packages/amplify/dist/amplify.js',
         'packages/ui/dist/ui/ui.js',
         'node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.wasm',
         'node_modules/react/umd/react.production.min.js',
@@ -130,7 +129,6 @@ const common = {
         'node_modules/prop-types/prop-types.min.js',
         'node_modules/interactjs/dist/interact.min.js',
         'node_modules/photoswipe/dist/umd/*.js',
-        'packages/amplify/dist/amplify.js',
         'packages/ui/dist/ui/ui.js',
         'node_modules/@sqlite.org/sqlite-wasm/sqlite-wasm/jswasm/sqlite3.wasm',
       ]).pipe(gulp.dest(path.join(outputPath, 'mobile', 'js'))),

+ 1 - 1
package.json

@@ -105,7 +105,7 @@
         "tldraw:build": "yarn --cwd packages/tldraw install",
         "amplify:build": "yarn --cwd packages/amplify install",
         "ui:build": "yarn --cwd packages/ui install",
-        "postinstall": "yarn tldraw:build && yarn amplify:build && yarn ui:build"
+        "postinstall": "yarn tldraw:build && yarn ui:build"
     },
     "dependencies": {
         "@capacitor-community/safe-area": "7.0.0-alpha.1",

+ 0 - 1
resources/index.html

@@ -49,7 +49,6 @@
 <script defer src="./js/react-dom.production.min.js"></script>
 <script defer src="./js/ui.js"></script>
 <script defer src="./js/main.js"></script>
-<script defer src="./js/amplify.js"></script>
 <script defer src="./js/prop-types.min.js"></script>
 <script defer src="./js/tabler-icons-react.min.js"></script>
 <script defer src="./js/tabler.ext.js"></script>

+ 0 - 1
resources/mobile/index.html

@@ -23,7 +23,6 @@
 <script defer src="./js/tabler-icons-react.min.js"></script>
 <script defer src="./js/tabler.ext.js"></script>
 <script defer src="./js/ui.js"></script>
-<script defer src="./js/amplify.js"></script>
 <script defer src="./js/silkhq.js"></script>
 <script defer src="./js/main.js"></script>
 <script defer src="./js/code-editor.js"></script>

+ 0 - 56
src/main/frontend/components/user/config.js

@@ -1,56 +0,0 @@
-import {Amplify} from '@aws-amplify/core';
-
-Amplify.configure({
-    Auth: {
-        // REQUIRED only for Federated Authentication - Amazon Cognito Identity Pool ID
-        // identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab',
-
-        // REQUIRED - Amazon Cognito Region
-        region: 'us-east-1',
-
-        // OPTIONAL - Amazon Cognito Federated Identity Pool Region
-        // Required only if it's different from Amazon Cognito Region
-        // identityPoolRegion: 'XX-XXXX-X',
-
-        // OPTIONAL - Amazon Cognito User Pool ID
-        userPoolId: 'us-east-1_ldvDmC9Fe',
-
-        // OPTIONAL - Amazon Cognito Web Client ID (26-char alphanumeric string)
-        userPoolWebClientId: '41m82unjghlea984vjpk887qcr',
-
-        // OPTIONAL - Enforce user authentication prior to accessing AWS resources or not
-        // mandatorySignIn: false,
-
-        // OPTIONAL - This is used when autoSignIn is enabled for Auth.signUp
-        // 'code' is used for Auth.confirmSignUp, 'link' is used for email link verification
-        // signUpVerificationMethod: 'code', // 'code' | 'link'
-
-        // OPTIONAL - Configuration for cookie storage
-        // Note: if the secure flag is set to true, then the cookie transmission requires a secure protocol
-        cookieStorage: {
-            domain: "localhost",
-            path: "/",
-            expires: 365,
-            sameSite: "strict",
-            secure: true,
-        },
-
-        // OPTIONAL - customized storage object
-        // storage: MyStorage,
-
-        // OPTIONAL - Manually set the authentication flow type. Default is 'USER_SRP_AUTH'
-        authenticationFlowType: 'USER_SRP_AUTH',
-
-        //
-        // // OPTIONAL - Manually set key value pairs that can be passed to Cognito Lambda Triggers
-        // clientMetadata: {myCustomKey: 'myCustomValue'},
-        //
-        // // OPTIONAL - Hosted UI configuration
-        // oauth: {
-        //     domain: 'your_cognito_domain',
-        //     scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'],
-        //     redirectSignIn: 'http://localhost:3000/',
-        //     redirectSignOut: 'http://localhost:3000/',
-        //     responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code
-    }
-});

+ 0 - 1
tailwind.all.css

@@ -9,7 +9,6 @@
 @import "inter-ui/inter.css";
 @import "photoswipe/dist/photoswipe.css";
 @import "shepherd.js/dist/css/shepherd.css";
-@import "packages/amplify/dist/amplify.css";
 @import "packages/tldraw/apps/tldraw-logseq/src/styles.css";
 @import "katex/dist/katex.min.css";
 @import "codemirror/lib/codemirror.css";

+ 0 - 1
tailwind.mobile.css

@@ -9,7 +9,6 @@
 @import "inter-ui/inter.css";
 
 @import "photoswipe/dist/photoswipe.css";
-@import "packages/amplify/dist/amplify.css";
 @import "katex/dist/katex.min.css";
 @import "codemirror/lib/codemirror.css";
 @import "codemirror/theme/solarized.css";