-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move components into playground * Remove unused type * Remove unnecessary .d.ts file * Remove remaining files from playground-ui * Remove unnecessary react usages * Remove reference to workspace package * Remove package.json from workspace * Update yarn.lock * Fix a bunch of references and a few lint issues * Move things out of spicedb-common dir * Remove spicedb-common bits * Move wasm-config where code can see it * Fix use-deep-compare reference * Add a todo to the genfile * Fix all of the references * Get rid of workspace package.json * Add scripts from root package to playground package * Move some playground things into the root * Remove unintentionally-committed vite config * Move script into root scripts * Move source files to root * Move public and contrib to root * Finish reorganization * Update to reflect flattened structure * Handle mjs correctly * Get rid of unnecessary module resolutions: * Remove changes I made to package.json * Remove craco config * Get rid of craco and react-scripts' * Put index.html file in the root * Upgrade ts, add vite and vitest * Add some vite configuration * Add missing plugins * Get linting working * Disable lint rules that errored on generated files * Fix a bunch of types * Make some mods to tsconfig * We never used this * Fix fontsource and remove service worker * Swap for new fontsource package * Update react types * Upgrade styled-compoennts to fix errors * Get rid of setupTests * Empty tests are useless * Remove now-unused file * Remove config file in favor of build-time vars * Add typescript types for environment variables * Remove config file, fix name of entrypoint * Add types for svgr * Fix imports, types, remove unused * Fix import, add TODO * Simplify configuration service * Simplify/fix types * Fix types * Fix test imports * Fix types and imports * Fix some types and imports * Fix svg imports * Remove props that the component doesn't support, fix types and imports * Fix tests * Rename buf.gen.yaml' : * Update buf.gen.yaml * Fix versions * Regenerate protobuf files to try and fix build issue * Temp commit todo file * Vendor the entire client * Remove temporarily * Work towards generating everything in the same directory * Vendor the SpiceDB proto * Add proto gen for internal protos to repo * Add configuration for vendored proto * Bump eslint deps * Remove vendored proto * Deleting to regenerate again * Reference repo instead of vendored proto, add optimize code size flag * Add generated code * Remove now-unused grpc-web * Remove unused filde * Update copy-build script' * Ignore dist file instead of build * Get rid of unused functions from contrib file * Update imports * Refactor sharing code to use protobuf-ts syntax * Update imports * Get rid of postbuild script * Fix build script * Get rid of config files in vercel config * Remove references to process.env * Use createRoot instead of render) * Reference webassembly directly instead of global * Formatting * add more todos * Fix an error on render * Add theme color to fix runtime error * Fix issue with light theme colors being undefined * Move wasm into public so it doesn't need to be copied * Update scripts to reflect new wasm location * Put wasm in static dir * Put into static folder * Flatten dir * Update script location again * Remove references to removed files * Add a dockerignore file for easier building * Simplify dockerfile and get build working * Fix local instance * Make build directory build again * Put build folder back in build * Add a comment * Finish pointing build script back at build * Remove unused var * Remove unused env var * Add env placeholders * Add env passthrough * Add todo * Reinstate download bit * Add readme section about code generation * Wrap string * Update dockerfile and readme
- Loading branch information
1 parent
112dff7
commit 03f126d
Showing
192 changed files
with
14,690 additions
and
71,179 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,7 @@ | ||
node_modules | ||
yarn-debug.log | ||
yarn-error.log | ||
spicedb | ||
zed | ||
build | ||
.vercel |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ spicedb | |
zed | ||
build | ||
.vercel | ||
.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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- [x] Fix tests | ||
- [x] Fix environment variable setting in dockerfile | ||
- [ ] Fix environment variable setting in vercel | ||
- [x] Fix build | ||
- [x] Fix buf.gen.yaml | ||
- [x] Get local instance working without errors | ||
- [ ] Add documentation of `buf generate` |
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,15 @@ | ||
--- | ||
version: 'v2' | ||
plugins: | ||
- remote: "buf.build/community/timostamm-protobuf-ts:v2.9.1" | ||
out: 'src/spicedb-common/protodefs' | ||
opt: | ||
- "long_type_string" | ||
- "generate_dependencies" | ||
- "optimize_code_size" | ||
inputs: | ||
- module: "buf.build/authzed/api:v1.38.0" | ||
paths: | ||
- "authzed/api/v0" | ||
- git_repo: "https://github.com/authzed/spicedb" | ||
subdir: "proto/internal" |
File renamed without changes.
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,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
generate_nginx() { | ||
conf_template=$1 | ||
nginx_conf=$2 | ||
envsubst '$PLAYGROUND_DEVELOPER_API_DOWNLOAD_ENDPOINT,$HEADER_CONTENT_SECURITY_POLICY' < "$conf_template" > "$nginx_conf" | ||
echo "${nginx_conf}:" | ||
cat "$nginx_conf" | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config( | ||
{ ignores: ['dist'] }, | ||
{ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}, | ||
) |
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,17 +1,111 @@ | ||
{ | ||
"name": "code", | ||
"private": "true", | ||
"name": "playground", | ||
"version": "0.1.0", | ||
"type": "module", | ||
"private": true, | ||
"dependencies": { | ||
"@apollo/client": "^3.7.3", | ||
"@apollo/link-context": "^2.0.0-beta.3", | ||
"@fontsource/roboto": "^5.1.1", | ||
"@fortawesome/fontawesome-svg-core": "^6.4.0", | ||
"@fortawesome/free-solid-svg-icons": "^6.2.1", | ||
"@fortawesome/react-fontawesome": "^0.2.0", | ||
"@glideapps/glide-data-grid": "^4.0.2", | ||
"@glideapps/glide-data-grid-cells": "^4.0.2", | ||
"@material-ui/core": "^4.12.4", | ||
"@material-ui/icons": "^4.11.3", | ||
"@material-ui/lab": "^4.0.0-alpha.61", | ||
"@monaco-editor/react": "^4.3.1", | ||
"@protobuf-ts/grpcweb-transport": "^2.9.4", | ||
"@protobuf-ts/plugin": "^2.6.0", | ||
"ansi-to-html": "^0.7.2", | ||
"color-hash": "^2.0.2", | ||
"d3-scale-chromatic": "^2.0.0", | ||
"dequal": "^2.0.2", | ||
"file-saver": "^2.0.5", | ||
"file-select-dialog": "^1.5.4", | ||
"google-protobuf": "^3.21.2", | ||
"graphql": "16.6.0", | ||
"install": "^0.13.0", | ||
"line-column": "^1.0.2", | ||
"lodash.throttle": "^4.1.1", | ||
"markdown-it": "^13.0.1", | ||
"marked": "^4.0.10", | ||
"monaco-editor-core": "^0.39.0", | ||
"parsimmon": "^1.18.1", | ||
"react": "^18.3.1", | ||
"react-cookie": "^4.1.1", | ||
"react-dom": "^18.3.1", | ||
"react-joyride": "^2.5.3", | ||
"react-reflex": "^4.0.9", | ||
"react-responsive-carousel": "^3.2.23", | ||
"react-router-dom": "^5.3.4", | ||
"sjcl": "^1.0.8", | ||
"string-to-color": "^2.2.2", | ||
"string.prototype.replaceall": "^1.0.6", | ||
"styled-components": "^6.1.14", | ||
"typeface-roboto-mono": "^1.1.13", | ||
"use-deep-compare": "^1.1.0", | ||
"use-deep-compare-effect": "^1.8.1", | ||
"use-keyboard-shortcuts": "^2.2.2", | ||
"visjs-network": "^4.24.11", | ||
"yaml": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.18.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/color-hash": "^1.0.2", | ||
"@types/d3-scale-chromatic": "^3.0.0", | ||
"@types/file-saver": "^2.0.5", | ||
"@types/jest": "^29.5.0", | ||
"@types/line-column": "^1.0.0", | ||
"@types/markdown-it": "^12.2.3", | ||
"@types/node": "^20.3.3", | ||
"@types/parsimmon": "^1.10.6", | ||
"@types/react": "^18.3.1", | ||
"@types/react-copy-to-clipboard": "^5.0.4", | ||
"@types/react-dom": "^18.3.1", | ||
"@types/react-router-dom": "^5.3.0", | ||
"@types/sjcl": "^1.0.30", | ||
"@types/styled-components": "^5.1.26", | ||
"@types/use-deep-compare-effect": "^1.5.1", | ||
"@types/uuid": "^9.0.1", | ||
"@vitejs/plugin-react": "^4.3.4", | ||
"cypress": "^12.9.0", | ||
"cypress-wait-until": "^1.7.2", | ||
"eslint": "^9.18.0", | ||
"eslint-plugin-react-hooks": "^5.1.0", | ||
"eslint-plugin-react-refresh": "^0.4.18", | ||
"globals": "^15.14.0", | ||
"postcss-safe-parser": "7.0.0", | ||
"typescript": "~5.7.3", | ||
"typescript-eslint": "^8.20.0", | ||
"vite": "^6.0.7", | ||
"vite-plugin-svgr": "^4.3.0", | ||
"vitest": "^2.1.8" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"build": "yarn workspace playground build && ./scripts/copy-build.sh", | ||
"dev": "HTTPS=true vite", | ||
"build": "tsc -b && vite build && ./scripts/copy-build.sh", | ||
"test": "vitest", | ||
"lint": "eslint .", | ||
"lint-fix": "eslint --fix .", | ||
"cy:run": "cypress run --browser chrome", | ||
"cy:open": "cypress open", | ||
"update:spicedb": "./scripts/update-spicedb.sh", | ||
"update:zed": "./scripts/update-zed.sh" | ||
}, | ||
"workspaces": [ | ||
"spicedb-common", | ||
"playground-ui", | ||
"playground" | ||
], | ||
"dependencies": {} | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
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,8 @@ | ||
# You can copy this file to .env and set these locally. | ||
# Otherwise we set envs at the vercel level. | ||
VITE_AUTHZED_DEVELOPER_GATEWAY_ENDPOINT= | ||
VITE_GOOGLE_ANALYTICS_MEASUREMENT_ID= | ||
|
||
VITE_DISCORD_CHANNEL_ID= | ||
VITE_DISCORD_INVITE_URL=https://authzed.com/discord | ||
VITE_DISCORD_SERVER_ID= |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.