Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Russ Garner committed Jul 29, 2022
1 parent 5c4c042 commit ec789c2
Show file tree
Hide file tree
Showing 66 changed files with 13,414 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CUSTOM_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_API_KEY=
GITHUB_CLIENT_ID=
AUTH0_CLIENT_ID=
AUTH0_BASE_URL=
JWT_TOKEN_SECRET=
POSTS_SERVER_URL=http://127.0.0.1:3000
8 changes: 8 additions & 0 deletions .env_example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CUSTOM_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_API_KEY=
GITHUB_CLIENT_ID=
AUTH0_CLIENT_ID=
AUTH0_BASE_URL=
JWT_TOKEN_SECRET=
POSTS_SERVER_URL=http://127.0.0.1:3000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019 Looker Data Sciences, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
461 changes: 461 additions & 0 deletions README.md

Large diffs are not rendered by default.

68 changes: 68 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 Looker Data Sciences, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/

module.exports = (api) => {
api.cache(true)

return {
presets: [
[
'@babel/env',
{
targets: {
esmodules: true,
},
modules: false,
},
],
[
'@babel/preset-react',
{
development: process.env.BABEL_ENV !== 'build',
},
],
'@babel/preset-typescript',
],
env: {
build: {
ignore: [
'**/*.d.ts',
'**/*.test.js',
'**/*.test.jsx',
'**/*.test.ts',
'**/*.test.tsx',
'__snapshots__',
'__tests__',
],
},
},
ignore: ['node_modules'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-runtime',
'babel-plugin-styled-components',
],
}
}
19 changes: 19 additions & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"posts": [
{
"id": 1,
"title": "A simple post",
"author": "Anthony Mouse"
}
],
"comments": [
{
"id": 1,
"body": "A simple comment",
"postId": 1
}
],
"profile": {
"name": "Anthony Mouse"
}
}
18 changes: 18 additions & 0 deletions manifest.lkml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project_name: "kitchensink"

application: kitchensink {
label: "Kitchen sink"
url: "http://localhost:8080/bundle.js"
entitlements: {
local_storage: yes
navigation: yes
new_window: yes
use_form_submit: yes
use_embeds: yes
core_api_methods: ["all_connections","search_folders", "run_inline_query", "me", "all_looks", "run_look"]
external_api_urls: ["http://127.0.0.1:3000", "http://localhost:3000", "https://*.googleapis.com", "https://*.github.com", "https://REPLACE_ME.auth0.com"]
oauth2_urls: ["https://accounts.google.com/o/oauth2/v2/auth", "https://github.com/login/oauth/authorize", "https://dev-5eqts7im.auth0.com/authorize", "https://dev-5eqts7im.auth0.com/login/oauth/token", "https://github.com/login/oauth/access_token"]
scoped_user_attributes: ["user_value"]
global_user_attributes: ["locale"]
}
}
167 changes: 167 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"name": "extension-kitchensink",
"version": "0.11.0",
"description": "Looker Extension SDK functionality demonstration",
"main": "dist/bundle.js",
"scripts": {
"analyze": "export ANALYZE_MODE=static && yarn build",
"build": "export BABEL_ENV=build && webpack --config webpack.prod.js",
"clean": "rm -rf dist && rm -f .eslintcache",
"develop": "webpack serve --hot --port 8080 --config webpack.develop.js",
"prebuild": "yarn clean",
"tsc": "tsc",
"lint:es": "eslint 'src/**/*.ts{,x}' --cache",
"lint:es:fix": "eslint 'src/**/*.ts{,x}' --cache --fix",
"data-server": "cp db.json temp_db.json && nodemon server/index.js"
},
"author": "Looker",
"license": "MIT",
"engines": {
"node": ">=14"
},
"dependencies": {
"@looker/components": "^3.0.1",
"@looker/components-date": "^2.4.1",
"@looker/components-providers": "^1.5.19",
"@looker/design-tokens": "^2.7.1",
"@looker/embed-sdk": "^1.6.1",
"@looker/extension-sdk": "^22.4.2",
"@looker/extension-sdk-react": "^22.4.2",
"@looker/icons": "1.5.13",
"@looker/sdk": "^22.4.2",
"@looker/sdk-rtl": "^21.3.3",
"@styled-icons/material": "^10.28.0",
"@styled-icons/material-outlined": "^10.34.0",
"@styled-icons/material-rounded": "^10.34.0",
"axios": "^0.21.2",
"date-fns": "^2.12.0",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.21",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-is": "^16.13.1",
"react-router-dom": "^5.3.0",
"semver": "^7.3.4",
"styled-components": "^5.3.1"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
"@babel/plugin-transform-react-jsx": "^7.13.12",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.16.4",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/runtime": "^7.12.5",
"@looker/eslint-config-oss": "^1.7.14",
"@looker/prettier-config": "^0.10.4",
"@types/lodash": "^4.14.165",
"@types/node": "^14.14.12",
"@types/react": "^16.14.2",
"@types/react-dom": "^16.9.10",
"@types/react-router-dom": "^5.1.5",
"@types/readable-stream": "^2.3.5",
"@types/semver": "^7.3.1",
"@types/styled-components": "^5.1.13",
"@types/styled-system": "^5.1.13",
"babel-loader": "^8.2.2",
"babel-preset-nano-react-app": "^0.1.0",
"dotenv": "^8.2.0",
"eslint": "^7.32.0",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-import-resolver-webpack": "^0.12.1",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-mdx": "^1.16.0",
"eslint-plugin-prettier": "^4.0.0",
"json-server": "^0.16.3",
"minimist": "^1.2.2",
"nodemon": "^2.0.6",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"react-hot-loader": "^4.12.20",
"typescript": "^4.5.2",
"webpack": "^5.67.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.8.1"
},
"babel": {
"presets": [
"nano-react-app"
],
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"pragmaFrag": "React.Fragment"
}
]
]
},
"eslintConfig": {
"extends": [
"@looker/eslint-config-oss"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"camelcase": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "all",
"argsIgnorePattern": "^_"
}
],
"sort-keys-fix/sort-keys-fix": "off",
"no-useless-constructor": "off",
"@typescript-eslint/no-empty-interface": "off",
"import/default": "off",
"sort-keys": "off",
"spaced-comment": [
"error",
"always",
{
"markers": [
"#region",
"#endregion"
]
}
],
"no-use-before-define": "off",
"no-console": 0
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
},
"import/external-module-folders": [
"node_modules",
"packages"
]
},
"overrides": [
{
"files": [
"*.js"
],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
},
"prettier": "@looker/prettier-config",
"prettierConfig": {
"overrides": {
"rules": {
"trailingComma": "all"
}
}
}
}
Loading

0 comments on commit ec789c2

Please sign in to comment.