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.
@@ -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
- <app-navbar
36
- :is-locked="isLocked"
37
- :running="running"
38
- :has-notebook="!!notebook"
39
- :last-run-index="lastRunIndex"
40
- :cell-count="notebook ? notebook.cells.length : 0"
41
- :has-api-key="!!geminiApiKey"
42
- @lock="lockNotebook"
43
- @refresh="reloadNotebook"
44
- @interrupt="interruptKernel"
45
- @regenerate-all="regenerateAllCode"
46
- @reset-run-all="resetAndRunAllCells"
47
- @open-info="showInfo = true"
48
- @open-settings="showSettings = true"
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
- <div v-if="uiError" class="notification mb-0 mt-0 px-4 pl-2 pr-6 has-text-danger has-background-danger-light"
52
- style="width: 100%; border-radius: 0; align-items: center; justify-content: space-between;">
53
- <span><strong>Error:</strong> {{ uiError }}</span>
54
- <button class="delete" @click="closeUiError"></button>
55
- </div>
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
- <div class="section notebook-area">
58
- <h1 class="title">
59
- {{ notebook_name }}
60
- </h1>
61
- <div class="notebook-container px-2 py-2">
62
- <div v-if="loading" class="has-text-centered py-6">
63
- <button class="button is-loading is-ghost is-large">Loading</button>
64
- <p class="has-text-grey">Fetching notebook data...</p>
65
- </div>
66
- <div v-else-if="error" class="notification is-danger is-light">
67
- <button class="delete" @click="error = null"></button>
68
- <strong>Error:</strong> {{ error }}
69
- </div>
70
- <div v-else="notebook">
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
- <cell-insertion-zone v-if="!isLocked"
73
- @insert="(celltype) => insertCell(0, celltype)"
74
- />
74
+ <cell-insertion-zone v-if="!isLocked"
75
+ @insert="(celltype) => insertCell(0, celltype)"
76
+ />
75
77
 
76
- <template v-for="(cell, index) in notebook.cells" :key="index">
78
+ <template v-for="(cell, index) in notebook.cells" :key="index">
77
79
 
78
- <notebook-cell
79
- :cell="cell"
80
- :is-active="activeIndex === index"
81
- :needs-running="index > lastRunIndex"
82
- :is-locked="isLocked"
83
- :last-run-index="lastRunIndex"
84
- :as-read="asRead"
85
- :markdown-edit-key="markdownEditKey[index]"
86
- :explanation-edit-key="explanationEditKey[index]"
87
- @click="setActiveCell(index)"
88
-
89
- @save-markdown="(content) => sendMarkdownToServer(content, index)"
90
- @save-explanation="(content) => sendExplanationToServer(content, index)"
91
- @save-code="(content) => sendCodeToServer(content, index)"
92
- @save-and-run="(content) => saveExplanationAndRun(content, index)"
93
-
94
- @run-cell="runCell(index)"
95
- @generate-code="generateCode(index)"
96
- @validate-code="validateCode(index)"
97
- @dismiss-validation="dismissValidation(index)"
98
-
99
- @delete="deleteCell(index)"
100
- @move-up="moveCell(index, -1)"
101
- @move-down="moveCell(index, 1)"
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
- <cell-insertion-zone v-if="!isLocked"
105
- @insert="(celltype) => insertCell(index + 1, celltype)"
106
- />
106
+ <cell-insertion-zone v-if="!isLocked"
107
+ @insert="(celltype) => insertCell(index + 1, celltype)"
108
+ />
107
109
 
108
- </template>
109
-
110
- </div>
110
+ </template>
111
+
111
112
  </div>
112
113
  </div>
114
+ </div>
113
115
 
114
- <!-- Settings Modal -->
115
- <settings-modal
116
- :is-active="showSettings"
117
- :api-key="geminiApiKey"
118
- @close="showSettings = false"
119
- @save="(newKey) => {showSettings = false; saveSettings(newKey); }"
120
- />
121
- <!-- Info Modal -->
122
- <info-modal
123
- :is-active="showInfo"
124
- @close="showInfo = false"
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plainbook
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Plain Language Notebooks
5
5
  Author-email: Luca de Alfaro <dealfaro@acm.org>
6
6
  License-Expression: BSD-3-Clause
@@ -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=2LEoKQMoAuCwDSTg8kpstvINJUL33QTcfLkEspS1wYI,5557
31
- plainbook-0.0.8.dist-info/licenses/LICENSE.md,sha256=JW6Hp9mBeCkRkCSeiT2KmIU3XA5mJorjcIlM2cOOxyU,1462
32
- plainbook-0.0.8.dist-info/METADATA,sha256=oqeZaTNU720_qAR6HqaiCu6Kvmpd7pj8ofV1hxkvOvo,3023
33
- plainbook-0.0.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- plainbook-0.0.8.dist-info/entry_points.txt,sha256=fktud-zRh9ZZ4rXv5w6kW-78u44lSYklXY1ttMTB9k8,50
35
- plainbook-0.0.8.dist-info/top_level.txt,sha256=Y3jOV2n79dczNw9tJ7acufz3y3ns2pWw8b06sIN4ltc,10
36
- plainbook-0.0.8.dist-info/RECORD,,
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,,