Compare commits

...

39 Commits

Author SHA1 Message Date
quenousimporte e1fad4468d add: sql keywords 2024-02-19 14:25:20 +01:00
quenousimporte 02eb28d4e0 linting 2024-02-16 16:10:13 +01:00
quenousimporte 057d27221a fix restore deleted note if accessed directly 2024-02-16 15:31:48 +01:00
quenousimporte d767f80874 refactor remove useless window
change logs
2024-02-16 15:04:36 +01:00
quenousimporte c425725423 refactor remove useless return statements 2024-02-16 11:25:37 +01:00
quenousimporte 77ddc4907f fix encryption 2024-02-16 11:03:08 +01:00
quenousimporte 717b2a1bce change keep legacy storage just in case 2024-02-16 09:46:15 +01:00
quenousimporte e8c5d38b3a change messages 2024-02-16 09:39:19 +01:00
quenousimporte 682a18132d fix exception at startup sync 2024-02-16 09:31:54 +01:00
quenousimporte e896275724 fix reload 2024-02-15 22:39:50 +01:00
quenousimporte e0a365b612 add logs
fix reload of current note
2024-02-15 22:32:17 +01:00
quenousimporte a1c0033e26 fix save to server 2024-02-15 22:11:56 +01:00
quenousimporte 4f33d65317 fix fetch modified notes from server 2024-02-15 16:39:31 +01:00
quenousimporte 5f049cf587 change remote call (init) 2024-02-15 16:02:56 +01:00
quenousimporte e9ac918775 refactor index serialization 2024-02-15 11:07:21 +01:00
quenousimporte a9cb693318 fix line url param 2024-02-15 10:16:23 +01:00
quenousimporte d838294ddd fix open note by url 2024-02-15 10:06:23 +01:00
quenousimporte 5a30250932 fix todotxt autosort 2024-02-15 09:35:21 +01:00
quenousimporte 8d0b4bef5e fix legacy migration:
use index instead of timestamp to avoid duplicates
add a warning message
2024-02-15 09:35:09 +01:00
quenousimporte 095bc6dd42 change and remove comments 2024-02-15 09:34:06 +01:00
quenousimporte 1ebc4ed714 fix empty tags 2024-02-15 09:33:27 +01:00
quenousimporte 8c27dfbd77 drop download as json
fix tags list
fix zip download
fix backlinks
2024-02-15 08:58:57 +01:00
quenousimporte c176d25287 fix subnotes 2024-02-15 08:41:25 +01:00
quenousimporte e7567e4d67 refactor guid from title 2024-02-08 09:07:24 +01:00
quenousimporte 33bbafaf7f fix deleted visibility 2024-02-07 22:26:22 +01:00
quenousimporte 7edb42ef83 fix load previous and next 2024-02-07 21:52:25 +01:00
quenousimporte 901e0aa812 fix connected notes 2024-02-07 21:44:12 +01:00
quenousimporte 5857299d06 fix subnotes, graph, etc 2024-02-07 21:41:03 +01:00
quenousimporte 67ce656365 sort notes by last change
fix delete and restore
2024-02-06 13:29:27 +01:00
quenousimporte 0d436b0516 fix note restore 2024-02-04 22:45:41 +01:00
quenousimporte de6268d86f refactor local serialization 2024-02-04 22:43:24 +01:00
quenousimporte d633cf719d refactor
fix create new note
2024-02-04 21:13:22 +01:00
quenousimporte 3b145cf219 fix notes list 2024-02-02 17:33:25 +01:00
quenousimporte 86c2ff8ff6 fix: empty tags and title 2024-02-02 12:01:31 +01:00
quenousimporte 7e75006d85 fixed command palette 2024-02-02 11:42:35 +01:00
quenousimporte 47f0907e77 refactor guid gen 2024-02-02 10:41:02 +01:00
quenousimporte 090c04eedd first refactor: load and save 2024-02-02 09:09:43 +01:00
quenousimporte 3e15377b57 Merge branch 'main' into feat/sync 2024-02-01 13:00:20 +01:00
quenousimporte b8eaaedf53 change: shorten link text in popup 2024-02-01 12:13:11 +01:00
3 changed files with 592 additions and 644 deletions

View File

@ -5,44 +5,37 @@ require 'settings.php';
// check authent
if ($password && (!isset($_POST['password']) || $_POST['password'] != $password))
{
echo '{"error": "authent"}';
echo 'error: authent';
}
else if (isset($_POST['action']))
{
$action = $_POST['action'];
$path = $datadir . $_POST['name'];
switch ($action)
{
case 'fetch':
if (file_exists($datafile))
if (file_exists($path))
{
echo file_get_contents($datafile);
}
else
{
echo '[]';
echo file_get_contents($path);
}
break;
case 'push':
$result = file_put_contents($datafile, $_POST['data']);
$result = file_put_contents($path, $_POST['data']);
if ($result === false)
{
echo '{"error": "could not save ' . $datafile . '"}';
}
else
{
echo '{"result": "ok"}';
echo 'error: could not save ' . $_POST['name'];
}
break;
default:
echo '{"error": "unknown action ' . $action . '"}';
echo 'error: unknown action ' . $action;
break;
}
}
else
{
echo '{"error": "missing action parameter"}';
echo 'error: missing action parameter';
}
?>

1095
main.js

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
<?php
$datafile = '../data/data.acs';
$datadir = '../data/';
$password = '';
?>