plainbook 0.0.8__py3-none-any.whl → 0.0.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plainbook/views/index.html +83 -81
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/METADATA +1 -1
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/RECORD +7 -7
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/WHEEL +0 -0
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/entry_points.txt +0 -0
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/licenses/LICENSE.md +0 -0
- {plainbook-0.0.8.dist-info → plainbook-0.0.9.dist-info}/top_level.txt +0 -0
plainbook/views/index.html
CHANGED
|
@@ -29,100 +29,102 @@
|
|
|
29
29
|
</style>
|
|
30
30
|
</head>
|
|
31
31
|
<body class="has-navbar-fixed-top">
|
|
32
|
+
|
|
33
|
+
<div id="app"></div>
|
|
32
34
|
|
|
33
35
|
<script type="text/x-template" id="app-template">
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
37
|
+
<app-navbar
|
|
38
|
+
:is-locked="isLocked"
|
|
39
|
+
:running="running"
|
|
40
|
+
:has-notebook="!!notebook"
|
|
41
|
+
:last-run-index="lastRunIndex"
|
|
42
|
+
:cell-count="notebook ? notebook.cells.length : 0"
|
|
43
|
+
:has-api-key="!!geminiApiKey"
|
|
44
|
+
@lock="lockNotebook"
|
|
45
|
+
@refresh="reloadNotebook"
|
|
46
|
+
@interrupt="interruptKernel"
|
|
47
|
+
@regenerate-all="regenerateAllCode"
|
|
48
|
+
@reset-run-all="resetAndRunAllCells"
|
|
49
|
+
@open-info="showInfo = true"
|
|
50
|
+
@open-settings="showSettings = true"
|
|
51
|
+
/>
|
|
50
52
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
<div v-if="uiError" class="notification mb-0 mt-0 px-4 pl-2 pr-6 has-text-danger has-background-danger-light"
|
|
54
|
+
style="width: 100%; border-radius: 0; align-items: center; justify-content: space-between;">
|
|
55
|
+
<span><strong>Error:</strong> {{ uiError }}</span>
|
|
56
|
+
<button class="delete" @click="closeUiError"></button>
|
|
57
|
+
</div>
|
|
56
58
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
59
|
+
<div class="section notebook-area">
|
|
60
|
+
<h1 class="title">
|
|
61
|
+
{{ notebook_name }}
|
|
62
|
+
</h1>
|
|
63
|
+
<div class="notebook-container px-2 py-2">
|
|
64
|
+
<div v-if="loading" class="has-text-centered py-6">
|
|
65
|
+
<button class="button is-loading is-ghost is-large">Loading</button>
|
|
66
|
+
<p class="has-text-grey">Fetching notebook data...</p>
|
|
67
|
+
</div>
|
|
68
|
+
<div v-else-if="error" class="notification is-danger is-light">
|
|
69
|
+
<button class="delete" @click="error = null"></button>
|
|
70
|
+
<strong>Error:</strong> {{ error }}
|
|
71
|
+
</div>
|
|
72
|
+
<div v-else="notebook">
|
|
71
73
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
<cell-insertion-zone v-if="!isLocked"
|
|
75
|
+
@insert="(celltype) => insertCell(0, celltype)"
|
|
76
|
+
/>
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
<template v-for="(cell, index) in notebook.cells" :key="index">
|
|
77
79
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
80
|
+
<notebook-cell
|
|
81
|
+
:cell="cell"
|
|
82
|
+
:is-active="activeIndex === index"
|
|
83
|
+
:needs-running="index > lastRunIndex"
|
|
84
|
+
:is-locked="isLocked"
|
|
85
|
+
:last-run-index="lastRunIndex"
|
|
86
|
+
:as-read="asRead"
|
|
87
|
+
:markdown-edit-key="markdownEditKey[index]"
|
|
88
|
+
:explanation-edit-key="explanationEditKey[index]"
|
|
89
|
+
@click="setActiveCell(index)"
|
|
90
|
+
|
|
91
|
+
@save-markdown="(content) => sendMarkdownToServer(content, index)"
|
|
92
|
+
@save-explanation="(content) => sendExplanationToServer(content, index)"
|
|
93
|
+
@save-code="(content) => sendCodeToServer(content, index)"
|
|
94
|
+
@save-and-run="(content) => saveExplanationAndRun(content, index)"
|
|
95
|
+
|
|
96
|
+
@run-cell="runCell(index)"
|
|
97
|
+
@generate-code="generateCode(index)"
|
|
98
|
+
@validate-code="validateCode(index)"
|
|
99
|
+
@dismiss-validation="dismissValidation(index)"
|
|
100
|
+
|
|
101
|
+
@delete="deleteCell(index)"
|
|
102
|
+
@move-up="moveCell(index, -1)"
|
|
103
|
+
@move-down="moveCell(index, 1)"
|
|
104
|
+
/>
|
|
103
105
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
<cell-insertion-zone v-if="!isLocked"
|
|
107
|
+
@insert="(celltype) => insertCell(index + 1, celltype)"
|
|
108
|
+
/>
|
|
107
109
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</div>
|
|
110
|
+
</template>
|
|
111
|
+
|
|
111
112
|
</div>
|
|
112
113
|
</div>
|
|
114
|
+
</div>
|
|
113
115
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
116
|
+
<!-- Settings Modal -->
|
|
117
|
+
<settings-modal
|
|
118
|
+
:is-active="showSettings"
|
|
119
|
+
:api-key="geminiApiKey"
|
|
120
|
+
@close="showSettings = false"
|
|
121
|
+
@save="(newKey) => {showSettings = false; saveSettings(newKey); }"
|
|
122
|
+
/>
|
|
123
|
+
<!-- Info Modal -->
|
|
124
|
+
<info-modal
|
|
125
|
+
:is-active="showInfo"
|
|
126
|
+
@close="showInfo = false"
|
|
127
|
+
/>
|
|
126
128
|
|
|
127
129
|
</script>
|
|
128
130
|
|
|
@@ -27,10 +27,10 @@ plainbook/js/nb.js,sha256=CZs32sAevGsea7PUjJK0Prd-7_mz1G82_S9_Hpx5gmQ,22822
|
|
|
27
27
|
plainbook/js/prism-python.min.js,sha256=7UOFaFvPLUk1yNu6tL3hZgPaEyngktK_NsPa3WfpqFw,2113
|
|
28
28
|
plainbook/js/prism.min.js,sha256=57iL3cbHV7L8jLET4kaYAasUp47BqPraTWOR41c_X58,18997
|
|
29
29
|
plainbook/js/vue.esm-browser.js,sha256=75FuLhUTPk19sncwNIrm0BGEL0_Qw298-_v01fPWYoI,542872
|
|
30
|
-
plainbook/views/index.html,sha256=
|
|
31
|
-
plainbook-0.0.
|
|
32
|
-
plainbook-0.0.
|
|
33
|
-
plainbook-0.0.
|
|
34
|
-
plainbook-0.0.
|
|
35
|
-
plainbook-0.0.
|
|
36
|
-
plainbook-0.0.
|
|
30
|
+
plainbook/views/index.html,sha256=Y_iA3eMd7X7BSkDgyPR3MghxvzOFnOZ8mmDizRb1iIM,5251
|
|
31
|
+
plainbook-0.0.9.dist-info/licenses/LICENSE.md,sha256=JW6Hp9mBeCkRkCSeiT2KmIU3XA5mJorjcIlM2cOOxyU,1462
|
|
32
|
+
plainbook-0.0.9.dist-info/METADATA,sha256=RbHMpf1Y4mJ6U4DKR6D0NknrfDUFrrtNnn-gEKAR8dY,3023
|
|
33
|
+
plainbook-0.0.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
34
|
+
plainbook-0.0.9.dist-info/entry_points.txt,sha256=fktud-zRh9ZZ4rXv5w6kW-78u44lSYklXY1ttMTB9k8,50
|
|
35
|
+
plainbook-0.0.9.dist-info/top_level.txt,sha256=Y3jOV2n79dczNw9tJ7acufz3y3ns2pWw8b06sIN4ltc,10
|
|
36
|
+
plainbook-0.0.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|