Skip to content

Commit 7fb236a

Browse files
committed
Added funding a some new stuff
1 parent 7d65886 commit 7fb236a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7382
-449
lines changed

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [ilse-langnar] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

javascript/web/diff

+4,961
Large diffs are not rendered by default.

javascript/web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"markdown-it-regexp": "^0.4.0",
3333
"mousetrap": "^1.6.5",
3434
"panzoom": "^9.4.3",
35+
"parse-server": "^5.4.0",
3536
"raw-loader": "^4.0.2",
3637
"register-service-worker": "^1.7.1",
3738
"resizable": "^1.2.1",

javascript/web/src/App.vue

+17-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
.app( v-show="ilse.has_loaded" :key="ilse.keys.app" )
2020
.loop( v-for="( tab, tab_index ) in ilse.tabs.list" :key="tab_index" )
2121
.htmll( v-if="tab.is_active" v-html="tab.html" style="overflow: auto; " )
22+
// .htmll( :style=" tab.is_active ? 'display: inherit; ' : 'display: none;' " v-html="tab.html" style="overflow: auto; " )
2223
2324
</template>
2425
<script>
@@ -48,11 +49,23 @@ export default {
4849
}
4950
},
5051
52+
watch: {
53+
54+
"ilse.config.dark"( new_values ) {
55+
prnitf( "new_values -> ", new_values )
56+
},
57+
58+
},
59+
5160
computed: {
5261
5362
get_data_theme() {
5463
if( !ilse || !ilse.config ) return "dark"
55-
return ilse.config.dark ? 'dark' : 'light'
64+
printf("ilse.config['dark-mode'] -> ",ilse.config['dark-mode'] )
65+
let o = ilse.config.dark
66+
return ilse.config.dark
67+
// if( !ilse || !ilse.config ) return "dark"
68+
// return ilse.config.dark ? 'dark' : 'light'
5669
},
5770
5871
},
@@ -566,7 +579,7 @@ code {
566579
padding: var( --padding );
567580
}
568581
569-
hr {
582+
hr .hr {
570583
width: 100%;
571584
border: 1px solid #000;
572585
}
@@ -1052,6 +1065,7 @@ code {
10521065
padding: 0.25em 0.5em 0.25em;
10531066
}
10541067
1068+
/*
10551069
hr {
10561070
border: none;
10571071
display: block;
@@ -1062,6 +1076,7 @@ hr {
10621076
margin: 10px auto;
10631077
border-radius: 50%;
10641078
}
1079+
*/
10651080
10661081
img {
10671082
height: auto;

javascript/web/src/assets/line.svg

+8
Loading

javascript/web/src/assets/space.svg

+6
Loading

javascript/web/src/classes/Cache.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class Cache {
1515
set( key, value ) {
1616
this.cache[key] = value
1717
// Clean
18-
setTimeout( () => { delete this.cache[key] }, ilse.config.cache_clean_time || 1000 * 60 )
18+
setTimeout( () => { delete this.cache[key] }, 1000 * 60 )
1919
}
2020

2121
get( key ) {

javascript/web/src/classes/Commands.js

+24-8
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,13 @@ class Commands {
400400
icon: "moon-stars.svg",
401401
fn: function() {
402402
ilse.config.dark = !ilse.config.dark
403-
ilse.config.save()
403+
printf( "ilse.config.dark -> ", ilse.config.dark )
404+
405+
// printf( "before -> ilse.config('dark') -> ", ilse.config('dark') )
406+
// ilse.config('dark', !ilse.config('dark') )
407+
// printf( "after -> ilse.config('dark') -> ", ilse.config('dark') )
408+
409+
ilse.save()
404410
},
405411
description: "Will turn on if it's off, and off if it's on",
406412
name: "Toggle Dark Mode",
@@ -509,9 +515,18 @@ class Commands {
509515
id: "new-note",
510516
icon: "point.svg",
511517
fn: async function() {
512-
let input = await ilse.dialog.input( "New note", "Content:" )
513-
let index = ilse.notes.list.length
514-
ilse.notes.add( input )
518+
519+
// let input = await ilse.dialog.input( "New note", "Content:" )
520+
// let index = ilse.notes.list.length
521+
// ilse.notes.add( input )
522+
523+
ilse.modal(
524+
ilse.render('search',
525+
{ search: '', list: [], pointer: -1, prepend_search: "", append_search: "" }
526+
),
527+
{ width: '70%', height: '70%' }
528+
)
529+
515530
},
516531
undo: args => {
517532
// TODO: Remove last note added
@@ -533,8 +548,8 @@ class Commands {
533548
),
534549
yes => {
535550
ilse.modes.push( "ilse" )
536-
ilse.config.modes = [ "ilse" ]
537-
ilse.config.save()
551+
// ilse.config('modes', JSON.stringify(['ilse']) )
552+
ilse.save()
538553
}
539554
)
540555

@@ -625,8 +640,9 @@ class Commands {
625640
id: "toggle-zen-mode",
626641
icon: "yin-yang.svg",
627642
fn: async function() {
628-
ilse.is_zen = ilse.config.is_zen = !ilse.config.is_zen
629-
ilse.config.save()
643+
ilse.config.is_zen = !ilse.config.is_zen
644+
// ilse.is_zen = ilse.config('is-zen', !ilse.config('is-zen') )
645+
ilse.save()
630646
},
631647
description: "Will toggle zen mode",
632648
name: "Toggle Zen Mode",

javascript/web/src/classes/Config.js

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default class Config {
3030
}
3131

3232
setup() {
33+
printf( "22222222222222222222222222222222222222222222" )
3334
this.listen()
3435
}
3536

javascript/web/src/classes/Dialog.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import printf from "@/functions/printf.js"
77
import Messager from "@/classes/Messager.js"
88

99
// HTML
10-
import info from "@/html/dialog_info.html"
11-
import input from "@/html/dialog_input.html"
12-
import confirm from "@/html/dialog_confirm.html"
10+
import info from "@/html/dialog-info.html"
11+
import input from "@/html/dialog-input.html"
12+
import confirm from "@/html/dialog-confirm.html"
1313

1414
export default class Dialog {
1515

0 commit comments

Comments
 (0)