-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
196 lines (176 loc) · 11.5 KB
/
index.html
File metadata and controls
196 lines (176 loc) · 11.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<!-- PRIMARY META -->
<title>Universal Note & Data Converter : Notes Migrator</title>
<meta name="title" content="Universal Note & Data Converter : Notes Migrator">
<meta name="description" content="Securely migrate notes between Google Keep, Apple Notes, Evernote, Notion, and Markdown. 100% private, client-side conversion running in your browser.">
<meta name="keywords" content="notes migrator, convert google keep to apple notes, evernote to markdown, notion to obsidian, migrate notes, json converter, private note converter">
<meta name="author" content="Ghazi Khan">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://migrator.mgks.dev/">
<!-- OPEN GRAPH / FACEBOOK -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://migrator.mgks.dev/">
<meta property="og:title" content="Universal Note & Data Converter : Notes Migrator">
<meta property="og:description" content="Move your data freely. Convert Google Keep, Evernote, and Notion exports into standard formats securely in your browser.">
<meta property="og:image" content="https://migrator.mgks.dev/assets/preview.png">
<meta property="og:site_name" content="Migrator">
<!-- TWITTER -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://migrator.mgks.dev/">
<meta property="twitter:title" content="Universal Note & Data Converter : Notes Migrator">
<meta property="twitter:description" content="Move your data freely. Convert Google Keep, Evernote, and Notion exports into standard formats securely in your browser.">
<meta property="twitter:image" content="https://migrator.mgks.dev/assets/preview.png">
<!-- PWA & ICONS -->
<meta name="theme-color" content="#ffffff">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/assets/icon-192.png" type="image/png">
<link rel="apple-touch-icon" href="/assets/icon-192.png">
<link rel="manifest" href="/assets/manifest.webmanifest">
<!-- STYLES & FONTS -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/src/style.css">
<!-- SCHEMA.ORG JSON-LD -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Migrator",
"url": "https://migrator.mgks.dev",
"description": "Securely migrate notes between Google Keep, Apple Notes, Evernote, Notion, and Markdown.",
"applicationCategory": "Productivity",
"operatingSystem": "Web",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"author": {
"@type": "Person",
"name": "Ghazi Khan",
"url": "https://mgks.dev"
}
}
</script>
<!-- ANALYTICS -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KT0X49LEFM"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KT0X49LEFM');
</script>
</head>
<body>
<!-- 1. Top Bar -->
<header>
<div class="brand">
<!-- Logo Icon -->
<a href="https://migrator.mgks.dev">
<svg width="32" height="32" viewBox="74.666 42.667 380.8 426.667" class="icon" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><path d="M74.666 426.666V85.334c0-23.467 19.2-42.667 42.667-42.667h256c23.466 0 42.666 19.2 42.666 42.667v341.333c0 23.467-19.2 42.667-42.666 42.667h-256c-23.467 0-42.667-19.2-42.667-42.667" fill="#fbcc00"/><path d="m455.466 256-114.133 96V160z" fill="#e08200"/><path d="M149.334 224h245.333v64H149.334z" fill="#e08200"/></svg>
<span>Migrator</span>
</a>
</div>
<div class="actions">
<!-- Help Circle -->
<a href="/wiki/guide/" class="icon-btn" title="Guide" aria-label="Guide">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
</a>
<!-- Sponsor -->
<a href="https://github.com/sponsors/mgks" target="_blank" class="icon-btn btn-sponsor" title="Sponsor">
<svg width="24" height="24" viewBox="0 0 7.5 7.5" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><path d="M.625 2.855c0 1.52 1.256 2.33 2.176 3.055.324.255.637.496.949.496s.625-.241.949-.497c.92-.724 2.176-1.534 2.176-3.053S5.156.258 3.75 1.719C2.344.258.625 1.336.625 2.855" fill="#e32400"/></svg>
</a>
<!-- GitHub -->
<a href="https://github.com/mgks/NotesMigrator" target="_blank" class="icon-btn btn-github" title="Source Code">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
</a>
<button id="themeBtn" class="icon-btn" title="Toggle Theme">
<!-- Sun (Visible in Dark Mode) -->
<svg class="sun-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
<!-- Moon (Visible in Light Mode) -->
<svg class="moon-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
</button>
</div>
</header>
<div id="dragOverlay" class="drag-overlay hidden">
<div class="drag-content">
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>
<h3>Drop files to add them</h3>
</div>
</div>
<!-- 2. Main Stage -->
<main id="appStage">
<!-- View A: Dropzone -->
<div id="uploadView" class="view active">
<div class="drop-trigger" id="dropTrigger">
<div class="icon-stack">
<svg width="100" height="100" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"/><g stroke-linecap="round" stroke-linejoin="round"/><path d="M12 8v8m3-5-2.913-2.913v0a.123.123 0 0 0-.174 0v0L9 11m-6 4v4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-4" stroke="#e08200" stroke-width=".84" stroke-linecap="round" stroke-linejoin="round"/></svg>
</div>
<h1>Import your Notes</h1>
<h3>Migrate notes between Google Keep, Apple Notes, Evernote, Notion, and more. 100% private.</h3>
<p>Drag & drop <b>folders</b>, <b>.zip</b>, <b>.enex</b>, or <b>.md</b> files here.</p>
<div style="display:flex; justify-content:center; gap:10px;">
<button id="browseBtn" class="btn secondary">Browse Files</button>
<button id="browseFolderBtn" class="btn secondary">Browse Folder</button>
</div>
<input type="file" id="fileInput" hidden multiple>
<input type="file" id="folderInput" hidden webkitdirectory directory>
</div>
</div>
<!-- View B: Scanning -->
<div id="scanView" class="view">
<div class="loader"></div>
<p id="scanStatus" class="status-text">Scanning archive...</p>
</div>
<!-- View C: File List -->
<div id="listView" class="view">
<div class="list-header">
<div class="col-check">
<input type="checkbox" id="selectAll" checked>
</div>
<div class="col-name">Name</div>
<div class="col-meta">Format</div>
<div class="col-size">Size</div>
</div>
<div id="fileList" class="file-list">
<!-- Items injected via JS -->
</div>
</div>
</main>
<!-- 3. Bottom Dock -->
<div id="dock" class="dock">
<div class="dock-content">
<div class="dock-left">
<div class="selection-info">
<span id="countDisplay">0</span> notes
</div>
<button id="addMoreBtn" class="btn secondary small" title="Add Files">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
Files
</button>
<button id="addFolderBtn" class="btn secondary small" title="Add Folder">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>
Folder
</button>
</div>
<div class="dock-actions">
<span class="label">Convert to</span>
<div class="select-wrapper">
<select id="formatSelect"></select>
<svg class="chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>
</div>
<button id="convertBtn" class="btn primary">
<span>Download</span>
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
</button>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>