Skip to content

Commit 1df80e0

Browse files
committed
new export to txt functionality
1 parent 9a2e13a commit 1df80e0

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

packages/newtab/newtab.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
</select>
7272
</div>
7373

74+
<!-- Export Button -->
75+
<button id="export-button" aria-label="Export notes">
76+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
77+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
78+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
79+
<polyline points="7 10 12 15 17 10"></polyline>
80+
<line x1="12" y1="15" x2="12" y2="3"></line>
81+
</svg>
82+
</button>
83+
7484
<!-- Settings Trigger -->
7585
<button id="settings-toggle" aria-label="Open settings" aria-expanded="false">
7686
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
@@ -90,6 +100,7 @@
90100
</footer>
91101

92102
<script type="text/javascript" src="script.js"></script>
103+
<script type="text/javascript" src="export.js"></script>
93104
</body>
94105

95106
</html>

packages/sidebar/panel.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@
7171
</select>
7272
</div>
7373

74+
<!-- Export Button -->
75+
<button id="export-button" aria-label="Export notes">
76+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
77+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
78+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
79+
<polyline points="7 10 12 15 17 10"></polyline>
80+
<line x1="12" y1="15" x2="12" y2="3"></line>
81+
</svg>
82+
</button>
83+
7484
<!-- Settings Trigger -->
7585
<button id="settings-toggle" aria-label="Open settings" aria-expanded="false">
7686
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
@@ -90,6 +100,7 @@
90100
</footer>
91101

92102
<script type="text/javascript" src="script.js"></script>
103+
<script type="text/javascript" src="export.js"></script>
93104
</body>
94105

95106
</html>

shared/styles.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ textarea:focus {
126126

127127
/* Buttons (Shared for Theme & Settings) */
128128
#theme-toggle,
129-
#settings-toggle {
129+
#settings-toggle,
130+
#export-button {
130131
background: none;
131132
border: none;
132133
padding: 6px;
@@ -138,6 +139,7 @@ textarea:focus {
138139

139140
#theme-toggle:hover,
140141
#settings-toggle:hover,
142+
#export-button:hover,
141143
#settings-toggle[aria-expanded="true"] {
142144
background: rgba(127, 127, 127, 0.1);
143145
color: var(--fg);

0 commit comments

Comments
 (0)