Skip to content

Commit 7e9991f

Browse files
authored
Enable Client side URL export, REST API, and other bugfixes (#179)
1 parent c28657a commit 7e9991f

10 files changed

+340
-128
lines changed

.gitignore

Lines changed: 143 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Created by https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,visualstudiocode,intellij+all
2-
# Edit at https://www.toptal.com/developers/gitignore?templates=c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,visualstudiocode,intellij+all
1+
# Created by https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,intellij+all,visualstudiocode,node
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,intellij+all,visualstudiocode,node
33

44
### C ###
55
# Prerequisites
@@ -402,6 +402,146 @@ Temporary Items
402402
# iCloud generated files
403403
*.icloud
404404

405+
### Node ###
406+
# Logs
407+
logs
408+
*.log
409+
npm-debug.log*
410+
yarn-debug.log*
411+
yarn-error.log*
412+
lerna-debug.log*
413+
.pnpm-debug.log*
414+
415+
# Diagnostic reports (https://nodejs.org/api/report.html)
416+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
417+
418+
# Runtime data
419+
pids
420+
*.pid
421+
*.seed
422+
*.pid.lock
423+
424+
# Directory for instrumented libs generated by jscoverage/JSCover
425+
lib-cov
426+
427+
# Coverage directory used by tools like istanbul
428+
coverage
429+
*.lcov
430+
431+
# nyc test coverage
432+
.nyc_output
433+
434+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
435+
.grunt
436+
437+
# Bower dependency directory (https://bower.io/)
438+
bower_components
439+
440+
# node-waf configuration
441+
.lock-wscript
442+
443+
# Compiled binary addons (https://nodejs.org/api/addons.html)
444+
build/Release
445+
446+
# Dependency directories
447+
node_modules/
448+
jspm_packages/
449+
450+
# Snowpack dependency directory (https://snowpack.dev/)
451+
web_modules/
452+
453+
# TypeScript cache
454+
*.tsbuildinfo
455+
456+
# Optional npm cache directory
457+
.npm
458+
459+
# Optional eslint cache
460+
.eslintcache
461+
462+
# Optional stylelint cache
463+
.stylelintcache
464+
465+
# Microbundle cache
466+
.rpt2_cache/
467+
.rts2_cache_cjs/
468+
.rts2_cache_es/
469+
.rts2_cache_umd/
470+
471+
# Optional REPL history
472+
.node_repl_history
473+
474+
# Output of 'npm pack'
475+
*.tgz
476+
477+
# Yarn Integrity file
478+
.yarn-integrity
479+
480+
# dotenv environment variable files
481+
.env
482+
.env.development.local
483+
.env.test.local
484+
.env.production.local
485+
.env.local
486+
487+
# parcel-bundler cache (https://parceljs.org/)
488+
.cache
489+
.parcel-cache
490+
491+
# Next.js build output
492+
.next
493+
out
494+
495+
# Nuxt.js build / generate output
496+
.nuxt
497+
dist
498+
499+
# Gatsby files
500+
.cache/
501+
# Comment in the public line in if your project uses Gatsby and not Next.js
502+
# https://nextjs.org/blog/next-9-1#public-directory-support
503+
# public
504+
505+
# vuepress build output
506+
.vuepress/dist
507+
508+
# vuepress v2.x temp and cache directory
509+
.temp
510+
511+
# Docusaurus cache and generated files
512+
.docusaurus
513+
514+
# Serverless directories
515+
.serverless/
516+
517+
# FuseBox cache
518+
.fusebox/
519+
520+
# DynamoDB Local files
521+
.dynamodb/
522+
523+
# TernJS port file
524+
.tern-port
525+
526+
# Stores VSCode versions used for testing VSCode extensions
527+
.vscode-test
528+
529+
# yarn v2
530+
.yarn/cache
531+
.yarn/unplugged
532+
.yarn/build-state.yml
533+
.yarn/install-state.gz
534+
.pnp.*
535+
536+
### Node Patch ###
537+
# Serverless Webpack directories
538+
.webpack/
539+
540+
# Optional stylelint cache
541+
542+
# SvelteKit build / generate output
543+
.svelte-kit
544+
405545
### Rust ###
406546
# Generated by Cargo
407547
# will have compiled files and executables
@@ -461,4 +601,4 @@ bb.out.*
461601
# Ignore code-workspaces
462602
*.code-workspace
463603

464-
# End of https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,visualstudiocode,intellij+all
604+
# End of https://www.toptal.com/developers/gitignore/api/c,c++,rust,cmake,clion,macos,emacs,valgrind,intellij+iml,intellij+all,visualstudiocode,node

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Added
10+
- Adds the following functionalities to PartiQL Playground:
11+
- Moves the project to a Node.js project
12+
- Adds the capability for exporting the playground session on client side to be able to get fetched from another playground windows.
13+
- Adds a REST API and exposes /parse for parsing the query over http request.
14+
- Containerization using Docker.
15+
16+
### Fixes
17+
- Fixes the bug with AST graph PAN and ZOOM—before this change the pan and zoom was quite flaky and very hard to work with.
18+
- Fixes the version value for the session and JSON output by ensuring it gets picked from the selected version in the UI.
919

1020
## [0.1.0] - 2022-08-05
1121
### Added

partiql-playground/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,12 @@ _Please note, as the package is experimental at this stage, all HTML code and as
8585
| Package | License |
8686
|------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
8787
| [ace Editor](https://ace.c9.io/) | [BSD License](https://github.com/ajaxorg/ace/blob/master/LICENSE) |
88+
| [body-parser](https://github.com/expressjs/body-parser) | [MIT License](https://github.com/expressjs/body-parser/blob/master/LICENSE) |
8889
| [bootstrap](https://getbootstrap.com/) | [MIT License](https://github.com/twbs/bootstrap/blob/main/LICENSE) |
8990
| [D3.js](https://d3js.org/) | [ISC License](https://github.com/d3/d3/blob/main/LICENSE) |
9091
| [jquery](https://jquery.com) | [MIT License](https://github.com/jquery/jquery/blob/main/LICENSE.txt) |
9192
| [jquery.json-viewer](https://www.npmjs.com/package/jquery.json-viewer) | [MIT License](https://github.com/abodelot/jquery.json-viewer/blob/master/LICENSE) |
9293
| [node](https://nodejs.org/en/) | [MIT License](https://github.com/nodejs/node/blob/main/LICENSE) |
94+
| [popper.js](https://github.com/floating-ui/floating-ui) | [MIT License](https://github.com/floating-ui/floating-ui/blob/master/LICENSE) |
9395
| [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) | [Apache License Version 2.0](https://github.com/rustwasm/wasm-bindgen/blob/main/LICENSE-APACHE) |
9496
| [wasm-pack](https://github.com/rustwasm/wasm-pack) | [Apache License Version 2.0](https://github.com/rustwasm/wasm-pack/blob/master/LICENSE-APACHE) |

partiql-playground/src/css/partiql-playground.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
color: #fff3cd;
1919
}
2020

21-
#env {
21+
#env-div {
2222
border: 1px solid #ccc;
2323
display: none;
2424
}

0 commit comments

Comments
 (0)