Skip to content

Commit

Permalink
v0.1.6 - Rebrand to trustynotes.app
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGingi committed Dec 21, 2024
1 parent 61cc54e commit e50f853
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 33 deletions.
2 changes: 1 addition & 1 deletion PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ We do not share your data with third parties. Your encrypted notes are only:

## Browser Extension
The TrustyNotes browser extension:
- Accesses only the notes.toolworks.dev domain
- Accesses only the trustynotes.app domain
- Stores encrypted notes locally
- Communicates with the web application for synchronization
- Requires explicit user permission for storage and tab access
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A secure cross-platform note-taking application. Features end-to-end encryption for cloud sync and a modern React frontend.

https://notes.toolworks.dev
Now: https://trustynotes.app

<p align="center">
<a href="https://addons.mozilla.org/en-US/firefox/addon/trustynotes/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png"></a>
Expand Down
4 changes: 2 additions & 2 deletions browser-extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function checkForPendingSync() {
const pendingNotes = notes.filter(note => note.pending_sync);

if (pendingNotes.length > 0 || now - lastSyncTime > 10000) {
const tabs = await chrome.tabs.query({ url: 'https://notes.toolworks.dev/*' });
const tabs = await chrome.tabs.query({ url: 'https://trustynotes.app/*' });
if (tabs.length > 0) {
const tab = tabs[0];

Expand Down Expand Up @@ -238,7 +238,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo.status === 'complete' &&
tab.url &&
tab.url.startsWith('https://notes.toolworks.dev')) {
tab.url.startsWith('https://trustynotes.app')) {
checkForPendingSync();
}
});
Expand Down
10 changes: 5 additions & 5 deletions browser-extension/manifest.chrome.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"manifest_version": 3,
"name": "Trusty Notes",
"version": "0.1.5",
"version": "0.1.6",
"description": "Quick access to your encrypted notes",
"externally_connectable": {
"matches": ["https://notes.toolworks.dev/*"]
"matches": ["https://trustynotes.app/*"]
},
"icons": {
"48": "icons/icon-48.png",
Expand All @@ -19,10 +19,10 @@
],
"web_accessible_resources": [{
"resources": ["content.js", "scripts/getStorageData.js"],
"matches": ["https://notes.toolworks.dev/*"]
"matches": ["https://trustynotes.app/*"]
}],
"host_permissions": [
"https://notes.toolworks.dev/*"
"https://trustynotes.app/*"
],
"action": {
"default_icon": "icons/icon-128.png",
Expand All @@ -34,7 +34,7 @@
"type": "module"
},
"content_scripts": [{
"matches": ["https://notes.toolworks.dev/*"],
"matches": ["https://trustynotes.app/*"],
"js": ["content.js"],
"run_at": "document_idle"
}],
Expand Down
10 changes: 5 additions & 5 deletions browser-extension/manifest.firefox.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"manifest_version": 3,
"name": "Trusty Notes",
"version": "0.1.5",
"version": "0.1.6",
"description": "Quick access to your encrypted notes",
"externally_connectable": {
"matches": ["https://notes.toolworks.dev/*"]
"matches": ["https://trustynotes.app/*"]
},
"icons": {
"48": "icons/icon-48.png",
Expand All @@ -22,10 +22,10 @@
"content.js",
"scripts/getStorageData.js"
],
"matches": ["https://notes.toolworks.dev/*"]
"matches": ["https://trustynotes.app/*"]
}],
"host_permissions": [
"https://notes.toolworks.dev/*"
"https://trustynotes.app/*"
],
"action": {
"default_icon": "icons/icon-128.png",
Expand All @@ -36,7 +36,7 @@
"scripts": ["background.js"]
},
"content_scripts": [{
"matches": ["https://notes.toolworks.dev/*"],
"matches": ["https://trustynotes.app/*"],
"js": ["content.js"],
"run_at": "document_idle"
}],
Expand Down
10 changes: 5 additions & 5 deletions browser-extension/popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ let webappTabCheckInterval = null;

async function getWebAppSettings() {
try {
const tabs = await chrome.tabs.query({ url: 'https://notes.toolworks.dev/*' });
const tabs = await chrome.tabs.query({ url: 'https://trustynotes.app/*' });
if (tabs.length === 0) {
const result = await chrome.storage.local.get(['encrypted_notes']);
if (result.encrypted_notes && cryptoService) {
Expand Down Expand Up @@ -265,7 +265,7 @@ async function syncPendingNotes() {
}

console.log(`Found ${pendingNotes.length} notes to sync`);
const tabs = await chrome.tabs.query({ url: 'https://notes.toolworks.dev/*' });
const tabs = await chrome.tabs.query({ url: 'https://trustynotes.app/*' });
if (tabs.length > 0) {
const tab = tabs[0];
console.log('Found webapp tab, attempting to sync...');
Expand Down Expand Up @@ -445,7 +445,7 @@ document.addEventListener('DOMContentLoaded', async () => {

openWebappButton.addEventListener('click', () => {
chrome.tabs.create({
url: 'https://notes.toolworks.dev'
url: 'https://trustynotes.app'
});
window.close();
});
Expand Down Expand Up @@ -505,7 +505,7 @@ chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
if (changeInfo.status === 'complete' &&
tab.url &&
tab.url.startsWith('https://notes.toolworks.dev')) {
tab.url.startsWith('https://trustynotes.app')) {

console.log('Webapp tab detected, preparing to sync...');
if (syncAttemptTimeout) {
Expand Down Expand Up @@ -576,7 +576,7 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
});

async function checkForWebappTab() {
const tabs = await chrome.tabs.query({ url: 'https://notes.toolworks.dev/*' });
const tabs = await chrome.tabs.query({ url: 'https://trustynotes.app/*' });
if (tabs.length > 0) {
console.log('Found webapp tab, attempting sync...');
await syncPendingNotes();
Expand Down
4 changes: 2 additions & 2 deletions build-extension.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
bun run build:chrome
cd browser-extension
web-ext build --overwrite-dest
mv web-ext-artifacts/trusty_notes-0.1.5.zip web-ext-artifacts/trusty_notes-chrome-0.1.5.zip
mv web-ext-artifacts/trusty_notes-0.1.6.zip web-ext-artifacts/trusty_notes-chrome-0.1.6.zip
rm manifest.json
cd ..
bun run build:firefox
cd browser-extension
web-ext build --overwrite-dest
mv web-ext-artifacts/trusty_notes-0.1.5.zip web-ext-artifacts/trusty_notes-firefox-0.1.5.zip
mv web-ext-artifacts/trusty_notes-0.1.6.zip web-ext-artifacts/trusty_notes-firefox-0.1.6.zip
rm manifest.json
Binary file modified bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
property="og:description"
content="Take notes securely with TrustyNotes. End-to-end encrypted, Markdown editor, automatic cloud sync, and cross-platform accessibility."
/>
<meta property="og:url" content="https://notes.toolworks.dev" />
<meta property="og:url" content="https://trustynotes.app" />
<meta
property="og:image"
content="https://raw.githubusercontent.com/toolworks-dev/trusty-notes/main/trusty-notes.png"
Expand All @@ -45,7 +45,7 @@
/>

<!-- Canonical URL -->
<link rel="canonical" href="https://notes.toolworks.dev" />
<link rel="canonical" href="https://trustynotes.app" />

<!-- Privacy Policy Link -->
<link rel="privacy-policy" href="https://raw.githubusercontent.com/toolworks-dev/trusty-notes/refs/heads/main/PRIVACY.md" />
Expand All @@ -59,7 +59,7 @@
"operatingSystem": "Cross-Platform",
"applicationCategory": "Utility",
"description": "TrustyNotes is a secure, open-source note-taking app featuring end-to-end encryption, Markdown editing, cloud synchronization, and cross-platform compatibility.",
"url": "https://notes.toolworks.dev",
"url": "https://trustynotes.app",
"screenshot": "https://raw.githubusercontent.com/toolworks-dev/trusty-notes/main/trusty-notes.png",
"offers": {
"@type": "Offer",
Expand All @@ -77,7 +77,7 @@
<!-- Analytics -->
<script
defer
data-domain="notes.toolworks.dev"
data-domain="trustynotes.app"
src="https://plausible.toolworks.dev/js/script.js"
></script>

Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "trusty-notes-web",
"private": true,
"version": "0.1.5",
"version": "0.1.6",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -12,6 +12,15 @@
"build:firefox": "node browser-extension/build.js firefox"
},
"dependencies": {
"@capacitor/android": "^6.2.0",
"@capacitor/app": "^6.0.2",
"@capacitor/cli": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/ios": "^6.2.0",
"@capacitor/keyboard": "^6.0.3",
"@capacitor/preferences": "^6.0.3",
"@capacitor/splash-screen": "^6.0.3",
"@capacitor/status-bar": "^6.0.2",
"@emotion/react": "^11.14.0",
"@mantine/core": "^7.15.1",
"@mantine/hooks": "^7.15.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/SyncSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { ApiService } from '../services/apiService';
//import { NumberInput } from '@mantine/core';

const DEFAULT_SERVERS = [
{ label: 'Official Server', value: 'https://notes-sync.toolworks.dev' },
{ label: 'Official Server', value: 'https://sync.trustynotes.app' },
{ label: 'Local Server', value: 'http://localhost:3222' },
];

Expand Down
4 changes: 2 additions & 2 deletions src/components/SyncSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export function SyncSetup({ onSync }: SyncSetupProps) {
try {
setStatus('syncing');
await WebStorageService.initializeCrypto(seedPhrase);
await WebStorageService.syncWithServer('https://notes-sync.toolworks.dev');
await WebStorageService.syncWithServer('https://sync.trustynotes.app');
await WebStorageService.saveSyncSettings({
seed_phrase: seedPhrase,
server_url: 'https://notes-sync.toolworks.dev',
server_url: 'https://sync.trustynotes.app',
auto_sync: false,
sync_interval: 5,
custom_servers: []
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useAutoSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function useAutoSync(auto_sync: boolean, sync_interval: number) {
body: JSON.stringify({
public_key: await cryptoService.getPublicKeyBase64(),
notes: encryptedNotes,
client_version: '0.1.5'
client_version: '0.1.6'
}),
});

Expand Down
4 changes: 2 additions & 2 deletions src/services/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
notes: EncryptedNote[];
}

//const DEFAULT_SERVER = 'https://notes-sync.toolworks.dev';
//const DEFAULT_SERVER = 'https://sync.trustynotes.app';

export class ApiService {
private static getEndpoint(serverUrl: string, path: string): string {
Expand Down Expand Up @@ -62,7 +62,7 @@
body: JSON.stringify({
public_key: publicKey,
notes: encryptedNotes,
client_version: '0.1.5'
client_version: '0.1.6'
}),
});

Expand Down
2 changes: 1 addition & 1 deletion src/services/webStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class WebStorageService {
return settingsJson ? JSON.parse(settingsJson) : {
auto_sync: false,
sync_interval: 300,
server_url: 'https://notes-sync.toolworks.dev',
server_url: 'https://sync.trustynotes.app',
custom_servers: [],
seed_phrase: null
};
Expand Down

0 comments on commit e50f853

Please sign in to comment.