Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static preview, live Binder in the background #811

Merged
merged 145 commits into from
Apr 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
d8beabe
"What if I start small"
dralletje Nov 24, 2020
a5bae21
Hey there
dralletje Nov 25, 2020
90d022f
Take this
dralletje Nov 25, 2020
4bea727
Okay this then
dralletje Nov 25, 2020
1cf3bed
Bonds now triggering less often
dralletje Nov 25, 2020
a52e779
Cool cool
dralletje Nov 26, 2020
e8811c9
Remove cells!!!
dralletje Nov 26, 2020
8204a0f
Cell focus and some stuff
dralletje Nov 26, 2020
b31e795
Memo
dralletje Nov 26, 2020
b49579d
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 27, 2020
a30969f
So much
dralletje Nov 27, 2020
e4262d0
Not yet
dralletje Nov 27, 2020
8f7daca
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 27, 2020
bc66757
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 27, 2020
96798e4
Honestly the tests didn't make much sense anyway
dralletje Nov 28, 2020
9f8ec08
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 28, 2020
0ca86c5
asd
dralletje Nov 28, 2020
009e55a
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 28, 2020
d3e2e48
Oof
dralletje Nov 28, 2020
bd163c5
Merge branch 'master' into firebase-like-state-managment
dralletje Nov 30, 2020
bea50e8
Error needs some work but sure
dralletje Nov 30, 2020
8853ed6
Make bonds always change
dralletje Nov 30, 2020
53a6cd9
Bonds are now shared
dralletje Nov 30, 2020
8593789
Splitting cells
dralletje Dec 1, 2020
56ecce7
Merge branch 'master' into firebase-like-state-managment
dralletje Dec 1, 2020
c1706c9
123
dralletje Dec 2, 2020
90ab8b4
Merge branch 'master' into firebase-like-state-managment
dralletje Dec 2, 2020
0a5368e
Submit all changes!
dralletje Dec 2, 2020
83def25
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 10, 2020
c02cde1
Fix multiple def error
fonsp Dec 10, 2020
c422148
dralbase nb - tiny cleanup - sorry for big diff
fonsp Dec 10, 2020
cf69031
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 11, 2020
05a0a60
moved cells -- nothing else this time
fonsp Dec 11, 2020
71f78c9
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 11, 2020
7e2059d
make functions named so that stack traces are easier
fonsp Dec 11, 2020
3770c83
run cells after undoing delete like before
fonsp Dec 11, 2020
893de5d
tweak undodelete timer
fonsp Dec 11, 2020
d4032c2
move exportbanner to its own file
fonsp Dec 11, 2020
5efd9a6
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 11, 2020
a901a7a
merge master
fonsp Dec 11, 2020
4f34cb8
sync code changes among clients
fonsp Dec 11, 2020
8855bc1
Fix Ctrl+Enter
fonsp Dec 11, 2020
e35e470
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 11, 2020
c9e1e32
notebook loading performance
fonsp Dec 11, 2020
14d340f
Save file on reorder and fold & prevent double/triple file saves
fonsp Dec 11, 2020
30f2c78
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 12, 2020
24b9185
homemade uuid
fonsp Dec 12, 2020
db81dcf
Fix splitting cells error click thing
fonsp Dec 12, 2020
7328969
Merge branch 'master' into firebase-like-state-managment
dralletje Dec 15, 2020
048af75
rename to Firebasey
fonsp Dec 19, 2020
a0e8697
Rename to cell_inputs, cell_results
fonsp Dec 19, 2020
079ef2f
Fix pasting and dropping cells
fonsp Dec 19, 2020
6d3beff
Fix show-more-items
fonsp Dec 19, 2020
59763e2
iterate dict directly
fonsp Dec 20, 2020
5b809fa
Merge branch 'master' into firebase-like-state-managment
dralletje Dec 20, 2020
38f3c00
deze moest nog
fonsp Dec 20, 2020
9a75749
upgrade immer to fix png display
fonsp Dec 20, 2020
cc4a2bb
fix array of tables
fonsp Dec 20, 2020
1c169de
Remove logging code from Dynamic.jl
fonsp Dec 20, 2020
61bdb40
Reset bonds when redefined
fonsp Dec 21, 2020
2f2e049
rename NotebookRequest to ClientRequest and use it for everything
fonsp Dec 21, 2020
51aa25c
moved code around
fonsp Dec 21, 2020
5a8a629
Remove old name from recent notebooks after rename
fonsp Dec 21, 2020
3b54a1a
forgot to rename
fonsp Dec 21, 2020
e1ca25b
binder UI
fonsp Dec 22, 2020
ac6db29
style tweaks
fonsp Dec 22, 2020
8806213
background request UI
fonsp Dec 23, 2020
07c5e53
asdf
fonsp Dec 23, 2020
67780d7
cors headers
fonsp Dec 23, 2020
1e3ec38
oops
fonsp Dec 23, 2020
24f4a13
security options for ws
fonsp Dec 23, 2020
9780c26
huh
fonsp Dec 24, 2020
25306c9
huh 2
fonsp Dec 24, 2020
dda196d
bindre token redirect blabla
fonsp Dec 24, 2020
403e7f3
Merge branch 'master' into firebase-like-state-managment
dralletje Dec 24, 2020
5181586
Merge branch 'firebase-like-state-managment' of https://github.com/fo…
dralletje Dec 24, 2020
a01d3c9
asdf
fonsp Dec 27, 2020
3eaf02e
Merge branch 'master' into binder-static-to-live-1
fonsp Dec 29, 2020
7b94f19
add POST endpoints
fonsp Dec 29, 2020
e11e89f
done!!!!!!!!!!
fonsp Dec 29, 2020
fee0756
Update Editor.js
fonsp Dec 29, 2020
bc637ec
Update Editor.js
fonsp Dec 29, 2020
f93c043
Dralbase state managment: Fix front-end tests (#809)
Dec 29, 2020
2e291e9
Merge branch 'master' into firebase-like-state-managment
fonsp Dec 29, 2020
3d69884
Merge branch 'firebase-like-state-managment' of https://github.com/fo…
fonsp Dec 29, 2020
2ae8b6f
Merge branch 'firebase-like-state-managment' into binder-static-to-li…
fonsp Dec 29, 2020
5a53b44
fix asdf
fonsp Dec 29, 2020
185a9a7
Merge branch 'master' into binder-static-to-live-1
fonsp Dec 29, 2020
cc5260b
block input until binder
fonsp Dec 29, 2020
17466cb
merge master
fonsp Jan 4, 2021
ae3961c
launch_params
fonsp Jan 4, 2021
d8caee9
allow inserting params into editor.html
fonsp Jan 4, 2021
b4f583f
Update editor.css
fonsp Jan 5, 2021
1dcb33a
Merge branch 'master' into binder-static-to-live-1
fonsp Jan 6, 2021
fee60ad
Hide UI launch parameter
fonsp Jan 6, 2021
072b00a
Merge branch 'master' into binder-static-to-live-1
fonsp Jan 6, 2021
4037745
Merge branch 'master' into binder-static-to-live-1
fonsp Jan 6, 2021
cedb661
Merge branch 'master' into binder-static-to-live-1
fonsp Jan 6, 2021
bee4d72
disable more ui
fonsp Jan 6, 2021
fb691c9
Update editor.css
fonsp Jan 6, 2021
701513d
usage counter
fonsp Jan 6, 2021
6b507d3
fix logo
fonsp Jan 6, 2021
b667714
relative url notebookfile
fonsp Jan 6, 2021
3ba61b3
Update Editor.js
fonsp Jan 6, 2021
50f7b2f
Update Editor.js
fonsp Jan 6, 2021
05e5b68
Update Editor.js
fonsp Jan 6, 2021
b7b7581
Merge branch 'master' into binder-static-to-live-1
fonsp Jan 7, 2021
903d127
🧹
fonsp Jan 7, 2021
b664512
📜
fonsp Jan 7, 2021
abd5581
🧯
fonsp Jan 7, 2021
a57dc47
support paths
fonsp Jan 20, 2021
e34b9ba
Disable home button for static
fonsp Jan 20, 2021
04dce91
Disable home button part 2
fonsp Jan 20, 2021
67bd419
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 2, 2021
1f03afd
binder shutdown function
fonsp Feb 2, 2021
af4ab06
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 2, 2021
d1e9d74
autofix wrong binder link & alert on failure
fonsp Feb 10, 2021
65baa05
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 10, 2021
f159494
Progress bar for loading state
fonsp Feb 10, 2021
522311e
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 11, 2021
63ef4b8
preact trouble & Save notebook link for binder sessions
fonsp Feb 14, 2021
b42c977
disable shutdown on beforeunload
fonsp Feb 14, 2021
777f6d9
Respond to key presses
fonsp Feb 14, 2021
b381a1b
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 19, 2021
ca84cbe
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 19, 2021
adb5e27
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 24, 2021
b17a716
Merge branch 'master' into binder-static-to-live-1
fonsp Feb 27, 2021
8639a51
Merge branch 'master' into binder-static-to-live-1
fonsp Mar 10, 2021
5ca304d
Merge branch 'master' into binder-static-to-live-1
fonsp Mar 10, 2021
b29f293
Merge branch 'master' into binder-static-to-live-1
fonsp Mar 10, 2021
01b6fba
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 15, 2021
2e9f37d
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 18, 2021
84c6f8c
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 25, 2021
794c168
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 31, 2021
956836e
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 31, 2021
ff894f0
format
fonsp Mar 31, 2021
68dba04
Merge branch 'main' into binder-static-to-live-1
fonsp Mar 31, 2021
bc83ef9
"Edit or run" button from compthinking
fonsp Apr 1, 2021
f3af0bb
Merge branch 'main' into binder-static-to-live-1
fonsp Apr 1, 2021
e2db3cc
fix sample loading
fonsp Apr 1, 2021
6a0f44c
only show binder button when binder url is provided
fonsp Apr 1, 2021
9cc54d0
move binder to file
fonsp Apr 1, 2021
395725a
typtyp
fonsp Apr 1, 2021
c3052af
Update Editor.js
fonsp Apr 1, 2021
3cf6a96
fixiefix
fonsp Apr 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
269 changes: 269 additions & 0 deletions frontend/binder.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
#binder_spinners {
width: 100%;
height: 100%;
display: block;
position: absolute;
overflow: hidden;

opacity: 0;
transition: opacity 1s ease-in-out;
pointer-events: none;
}

binder-spinner#ring_1 {
border-top-color: #f5a252;
width: 300px;
height: 300px;
margin-left: calc(-0.5 * 300px);
margin-top: calc(-0.5 * 300px);
animation-duration: 2s;
}
binder-spinner#ring_2 {
border-top-color: #579aca;
width: 380px;
height: 380px;
margin-left: calc(-0.5 * 380px);
margin-top: calc(-0.5 * 380px);
animation-duration: 3s;
}
binder-spinner#ring_3 {
border-top-color: #e56581;
width: 460px;
height: 460px;
margin-left: calc(-0.5 * 460px);
margin-top: calc(-0.5 * 460px);
animation-duration: 4s;
}
binder-spinner {
top: 117px;
left: 80vw;
position: absolute;
border: 25px solid transparent;
display: block;
border-radius: 100%;
animation: spin 4s linear infinite;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

#launch_binder {
/* position: absolute; */
position: fixed;
z-index: 2000;
top: 9px;
right: 8px;
/* width: 153.2px; */
/* height: 60px; */
}
#launch_binder button {
padding: 7px 20px;
background: #fffdf7;
box-shadow: 0px 0px 20px 0px #ffffff;
cursor: pointer;
font-size: 14px;
font-style: italic;
font-family: "Roboto Mono";
letter-spacing: -0.2px;
color: #0000009c;
white-space: nowrap;
display: block;
}

body.wiggle_binder button#launch_binder,
body.wiggle_binder #binder_launch_help {
/* position: fixed; */
animation: wiggle 0.3s ease-in-out 0s 1;
}

@keyframes wiggle {
0% {
transform: rotate(0deg);
}
30% {
transform: rotate(10deg);
}
70% {
transform: rotate(-10deg);
}
100% {
transform: rotate(0deg);
}
}

#launch_binder button img {
margin: -8px;
margin-left: 0px;
font-style: normal;
color: black;
font-weight: 900;
}

#binder_launch_help {
width: 100%;
display: block;
text-align: center;
z-index: 2000;
box-shadow: none;
cursor: pointer;
background: unset;
background-color: white;
border: 3px solid #3f448c5e;
font-size: 14px;
font-style: italic;
font-family: "Roboto Mono";
letter-spacing: -0.2px;
color: #0000009c;
white-space: nowrap;
padding: 8px 16px;
border-radius: 30px;
}

#binder_launch_help:hover {
text-decoration: underline;
}

#binder_help_text {
--width: min(85vw, 570px);
position: fixed;
top: 5rem;
max-height: calc(100vh - 4rem);
overflow: auto;
width: var(--width);
padding: 16px;
border-radius: 8px;
left: calc(50vw - var(--width) / 2);
background-color: white;
box-shadow: 0px 0px 0px 100vmax #0000004a;

font-family: "Lato", sans-serif;
}

@media (max-width: 500px) {
#binder_help_text {
top: 0;
width: 100vw;
left: 0;
max-height: 100vh;
}
}

#binder_help_text .close {
position: absolute;
top: 12px;
right: 12px;
width: 24px;
height: 24px;
background-size: 24px 24px;
cursor: pointer;
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/[email protected]/src/svg/close-outline.svg);
}

.copy_div {
padding: 4px 8px;
display: flex;
justify-content: space-between;
align-items: center;
height: 40px;
margin-bottom: 0.75rem;
}

#launch_binder button,
.copy_div {
width: max(60%, 10rem);
margin: 0px auto;
border: 3px solid #3f448c5e;
border-radius: 8px;
overflow: hidden;
}

.copy_div input {
width: calc(100% - 8px - 1rem);
outline: none;
border: none;
font-size: 0.7rem;
font-family: "Roboto Mono", monospace;
line-height: 1.4;
cursor: text;
}

.copy_icon {
position: relative;
cursor: pointer;
height: 1.5rem;
width: 1.5rem;
background-size: 1rem 1rem;
background-position: center;
background-repeat: no-repeat;
background-image: url(https://cdn.jsdelivr.net/gh/ionic-team/[email protected]/src/svg/copy-outline.svg);
box-shadow: 0px 0px 60px 60px white;
}

.copy_icon.success_copy::after {
content: "Copied!";
position: absolute;
background-color: rgb(220, 235, 245);
border-radius: 0.5rem;
line-height: 1.5rem;
text-align: center;
width: 4rem;
font-size: 0.75rem;
font-family: JuliaMono, monospace;
font-weight: bold;
/* left: calc(-2rem + 0.75rem); */
animation: fadeout 3s;
}

.copy_icon:not(.success_copy):hover::after {
content: "Copy";
position: absolute;
background-color: rgb(244, 245, 220);
border-radius: 0.5rem;
line-height: 1.5rem;
text-align: center;
width: 4rem;
font-size: 0.75rem;
font-family: JuliaMono, monospace;
font-weight: bold;
}

.copy_icon::after {
right: 1.5rem;
}

@keyframes fadeout {
0% {
opacity: 1;
}
20% {
opacity: 1;
}
40% {
opacity: 0;
}
100% {
opacity: 0;
}
}

.command {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 0.75rem;
}
#launch_binder li {
margin-bottom: 2rem;
}
#launch_binder li video,
#launch_binder li img {
/* outline: 1px solid black; */
border: 5px solid rgb(212, 212, 212);
border-radius: 5px;
width: 100%;
}
Loading