Skip to content

Commit

Permalink
Surrealist 3.0 (#394)
Browse files Browse the repository at this point in the history
Co-authored-by: Micha de Vries <[email protected]>
  • Loading branch information
macjuul and kearfy authored Aug 30, 2024
1 parent 1809db5 commit a089b9a
Show file tree
Hide file tree
Showing 312 changed files with 13,147 additions and 11,453 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"unicorn/no-thenable": 0,
"unicorn/prefer-top-level-await": 0,
"unicorn/no-useless-undefined": 0,
"unicorn/no-negated-condition": 0,
"no-trailing-spaces": 1
},
"parserOptions": {
Expand Down
5 changes: 1 addition & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
* @macjuul

# API Docs
/src/screens/database/docs @Ekwuno

# Lezer grammar
/packages/lezer-surrealql @kearfy
/src/screens/database/docs @Ekwuno
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist/
.idea/

.hintrc
.env

.DS_Store

Expand Down
4 changes: 2 additions & 2 deletions aws/prod/viewer-request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function handler(event) {
case request.uri === '/embed':
return redirect('/mini');
case request.uri === '/mini/new':
request.uri = '/mini/new.html';
request.uri = '/mini/new/index.html';
return request;
case request.uri === '/mini':
request.uri = '/mini/run.html';
request.uri = '/mini/run/index.html';
return request;
case request.uri.includes('.') === false:
request.uri = '/index.html';
Expand Down
28 changes: 28 additions & 0 deletions cloud/callback/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="theme-color" content="#e600a4" />
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta name="author" content="SurrealDB Ltd">

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<base target="_blank" rel="noopener noreferrer" />

<title>Opening Surrealist...</title>

<!-- Twitter Cards & Open Graph -->
<meta name="description" content="Powerful graphical SurrealDB query playground and database explorer, available for web and desktop ⚡">
<meta name="twitter:card" content="content">
<meta name="twitter:title" content="Surrealist">
<meta name="twitter:image" content="https://raw.githubusercontent.com/surrealdb/surrealist/main/.github/branding/banner.png">
<meta name="og:title" content="Surrealist">
<meta name="og:type" content="website">
<meta name="og:description" content="Powerful graphical SurrealDB query playground and database explorer, available for web and desktop ⚡">
<meta name="og:image" content="https://raw.githubusercontent.com/surrealdb/surrealist/main/.github/branding/banner.png">
</head>
<body>
<div id="root"></div>
<script src="../../src/startup/cloud-callback.tsx" type="module"></script>
</body>
</html>
28 changes: 28 additions & 0 deletions cloud/manage/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="theme-color" content="#e600a4" />
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta name="author" content="SurrealDB Ltd">

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<base target="_blank" rel="noopener noreferrer" />

<title>Surreal Cloud</title>

<!-- Twitter Cards & Open Graph -->
<meta name="description" content="Powerful graphical SurrealDB query playground and database explorer, available for web and desktop ⚡">
<meta name="twitter:card" content="content">
<meta name="twitter:title" content="Surrealist">
<meta name="twitter:image" content="https://raw.githubusercontent.com/surrealdb/surrealist/main/.github/branding/banner.png">
<meta name="og:title" content="Surrealist">
<meta name="og:type" content="website">
<meta name="og:description" content="Powerful graphical SurrealDB query playground and database explorer, available for web and desktop ⚡">
<meta name="og:image" content="https://raw.githubusercontent.com/surrealdb/surrealist/main/.github/branding/banner.png">
</head>
<body>
<div id="root"></div>
<script src="../../src/startup/cloud-manage.tsx" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
</head>
<body>
<div id="root"></div>
<script src="./src/index.tsx" type="module"></script>
<script src="./src/startup/surrealist.tsx" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion mini/new.html → mini/new/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
</head>
<body>
<div id="root"></div>
<script src="../src/mini/new.tsx" type="module"></script>
<script src="../../src/startup/mini-new.tsx" type="module"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion mini/run.html → mini/run/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
</head>
<body>
<div id="root"></div>
<script src="../src/mini/run.tsx" type="module"></script>
<script src="../../src/startup/mini-run.tsx" type="module"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
51 changes: 24 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"name": "surrealist",
"private": true,
"version": "2.1.6",
"surreal": "1.4.2",
"version": "3.0.0-beta.1",
"surreal": "2.0.0",
"type": "module",
"authors": [
"SurrealDB"
],
"scripts": {
"build": "tsc && pnpm grammar:build && vite build",
"build:desktop": "tsc && pnpm grammar:build && vite build -c vite.config.desktop.ts",
"build:embedded": "tsc && pnpm grammar:build && vite build -c vite.config.embedded.ts",
"build:preview": "tsc && pnpm grammar:build && vite build -c vite.config.preview.ts",
"build": "tsc && vite build",
"build:desktop": "tsc && vite build -c vite.config.desktop.ts",
"build:embedded": "tsc && vite build -c vite.config.embedded.ts",
"build:preview": "tsc && vite build -c vite.config.preview.ts",
"dev": "vite",
"dev:desktop": "vite -c vite.config.desktop.ts",
"grammar:build": "cd packages/lezer-surrealql && pnpm build && cd ../codemirror-surrealql && pnpm build",
"preview": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"license-report": "license-report --fields name --fields licenseType --fields link --fields installedVersion --fields author > src/assets/data/license-report.json",
"preview": "vite preview",
"start": "vite",
"tauri": "tauri",
"tauri:dev": "tauri dev",
"tauri:build": "tauri build",
Expand All @@ -30,7 +28,6 @@
"@codemirror/commands": "^6.3.3",
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-php": "^6.0.1",
"@codemirror/lang-python": "^6.1.6",
"@codemirror/lang-rust": "^6.0.1",
Expand All @@ -45,62 +42,60 @@
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@lezer/highlight": "^1.2.0",
"@mantine/core": "^7.6.2",
"@mantine/hooks": "^7.6.2",
"@mantine/modals": "^7.12.0",
"@mantine/notifications": "^7.6.2",
"@mantine/core": "^7.12.1",
"@mantine/hooks": "^7.12.1",
"@mantine/modals": "^7.12.1",
"@mantine/notifications": "^7.12.1",
"@mdi/js": "^7.2.96",
"@replit/codemirror-indentation-markers": "^6.5.0",
"@surrealdb/codemirror": "1.0.0-beta.4",
"@surrealdb/lezer": "1.0.0-beta.4",
"@surrealdb/ql-wasm": "0.2.0-beta.2",
"@surrealdb/wasm": "1.0.0-beta.18",
"@tanstack/react-query": "^5.37.1",
"@tauri-apps/api": "2.0.0-beta.14",
"@tauri-apps/plugin-deep-link": "2.0.0-beta.8",
"@tauri-apps/plugin-dialog": "2.0.0-beta.6",
"@tauri-apps/plugin-fs": "2.0.0-beta.6",
"@tauri-apps/plugin-http": "2.0.0-beta.7",
"@tauri-apps/plugin-log": "2.0.0-beta.7",
"@tauri-apps/plugin-os": "2.0.0-beta.6",
"@tauri-apps/plugin-process": "2.0.0-beta.6",
"@tauri-apps/plugin-shell": "2.0.0-beta.7",
"@tauri-apps/plugin-updater": "2.0.0-beta.6",
"@theopensource-company/feature-flags": "^0.4.6",
"@types/react-copy-to-clipboard": "^5.0.7",
"ansi-to-html": "^0.7.2",
"clsx": "^2.1.0",
"cm6-graphql": "^0.0.15",
"codemirror": "^6.0.1",
"codemirror-surrealql": "workspace:codemirror-surrealql",
"dagre": "^0.8.5",
"dayjs": "^1.11.9",
"dedent": "^1.5.1",
"elkjs": "^0.9.1",
"escape-string-regexp": "^5.0.0",
"fast-deep-equal": "^3.1.3",
"flag-icons": "^7.2.3",
"geo-coordinates-parser": "^1.7.0",
"graphql": "^16.9.0",
"html-to-image": "^1.11.11",
"immer": "^10.0.2",
"klona": "^2.0.6",
"leaflet": "^1.9.4",
"lezer-surrealql": "workspace:lezer-surrealql",
"lottie-web": "^5.12.2",
"mantine-contextmenu": "^7.5.0",
"papaparse": "^5.4.1",
"posthog-js": "^1.121.4",
"radash": "^11.0.0",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.12",
"react-leaflet": "^4.2.1",
"react-resizable-panels": "^2.0.5",
"react-reverse-portal": "^2.1.1",
"reactflow": "^11.10.4",
"remove": "^0.1.5",
"rss-parser": "^3.13.0",
"semver": "^7.5.4",
"semver-compare": "^1.0.0",
"surrealdb.js": "1.0.0-beta.18",
"surrealdb.wasm": "1.0.0-beta.15",
"surrealql.wasm": "^0.1.8",
"surrealdb": "1.0.0-beta.20",
"use-immer": "^0.9.0",
"vite-plugin-markdown": "^2.2.0",
"zustand": "^4.5.0"
},
"devDependencies": {
Expand Down Expand Up @@ -128,11 +123,13 @@
"typescript": "^5.1.6",
"vite": "^5.2.9",
"vite-plugin-compression2": "^1.1.2",
"vite-plugin-image-optimizer": "^1.1.8"
"vite-plugin-image-optimizer": "^1.1.8",
"vite-plugin-markdown": "^2.2.0"
},
"pnpm": {
"patchedDependencies": {
"@reactflow/[email protected]": "patches/@[email protected]"
"@reactflow/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]"
}
}
}
6 changes: 0 additions & 6 deletions packages/codemirror-surrealql/.gitignore

This file was deleted.

51 changes: 0 additions & 51 deletions packages/codemirror-surrealql/dist/index.cjs

This file was deleted.

10 changes: 0 additions & 10 deletions packages/codemirror-surrealql/dist/index.d.cts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/codemirror-surrealql/dist/index.d.ts

This file was deleted.

48 changes: 0 additions & 48 deletions packages/codemirror-surrealql/dist/index.js

This file was deleted.

Loading

0 comments on commit a089b9a

Please sign in to comment.