-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from visgl/dt/workers-version-fix
chore: prod update
- Loading branch information
Showing
311 changed files
with
18,540 additions
and
10,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REACT_APP_ARCGIS_REST_CLIENT_ID=abcd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
build | ||
coverage | ||
src/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,59 @@ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
parser: "@typescript-eslint/parser", | ||
plugins: ["@typescript-eslint"], | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
rules: { "@typescript-eslint/no-explicit-any": "off" }, | ||
extends: ["standard-with-typescript", "plugin:react/recommended"], | ||
// ignorePatterns: ["**/*.html"], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
}, | ||
files: [".eslintrc.{js,cjs}", "src/**/*.ts", "src/**/*.tsx"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
project: ["./tsconfig.eslint.json"], | ||
}, | ||
plugins: ["react"], | ||
rules: { | ||
"@typescript-eslint/semi": ["error", "always"], | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/no-unsafe-argument": "warn", | ||
"@typescript-eslint/quotes": ["error", "double"], | ||
"@typescript-eslint/explicit-function-return-type": "warn", | ||
"react/react-in-jsx-scope": "off", | ||
"@typescript-eslint/comma-dangle": [ | ||
"error", | ||
{ | ||
arrays: "always-multiline", | ||
objects: "always-multiline", | ||
imports: "always-multiline", | ||
exports: "always-multiline", | ||
enums: "always-multiline", | ||
functions: "never", | ||
}, | ||
], | ||
"@typescript-eslint/member-delimiter-style": [ | ||
"error", | ||
{ | ||
multiline: { delimiter: "semi", requireLast: true }, | ||
singleline: { delimiter: "semi", requireLast: false }, | ||
multilineDetection: "brackets", | ||
}, | ||
], | ||
"@typescript-eslint/space-before-function-paren": "off", | ||
}, | ||
settings: { | ||
react: { | ||
version: "18.2", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
build/ | ||
coverage/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const mockContent = { | ||
items: [ | ||
{ | ||
id: "new-york", | ||
name: "NewYork.slpk", | ||
url: "https://123.com", | ||
created: 123456, | ||
type: "Scene Service", | ||
typeKeywords: "This is a Hosted Service", | ||
title: "New York", | ||
token: "token-https://123.com", | ||
}, | ||
{ | ||
id: "turanga-library", | ||
name: "TurangaLibrary.slpk", | ||
url: "https://456.com", | ||
created: 123457, | ||
type: "Scene Service", | ||
typeKeywords: "This is a Hosted Service", | ||
title: "Turanga Library", | ||
token: "token-https://456.com", | ||
}, | ||
], | ||
}; | ||
|
||
export const getUserContent = async (authentication) => { | ||
return mockContent; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const mockEmailExpected = "[email protected]"; | ||
const mockSessionExpected = '{"usermail": "usermail"}'; | ||
const mockTokenExpectedPrefix = "token-"; | ||
|
||
const session = { | ||
usermail: mockEmailExpected, | ||
serialize: () => { | ||
return mockSessionExpected; | ||
}, | ||
getUser: async () => { | ||
return { email: mockEmailExpected }; | ||
}, | ||
getToken: async (url: string) => { | ||
return mockTokenExpectedPrefix + url; | ||
}, | ||
}; | ||
|
||
export class ArcGISIdentityManager { | ||
static beginOAuth2 = async () => { | ||
return session; | ||
}; | ||
static completeOAuth2 = async () => { | ||
return; | ||
}; | ||
static destroy = async () => { | ||
return; | ||
}; | ||
static deserialize = () => { | ||
return session; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.