Skip to content

Commit

Permalink
finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ondras committed Oct 30, 2021
1 parent 7044546 commit bc3d4a9
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 12 deletions.
1 change: 0 additions & 1 deletion css/my-mind.less
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ button:not(:disabled) {
z-index: 1;
left: 10px;
bottom: 5px;
font-size: 14px;

&::before { content: "Tip: "; }

Expand Down
7 changes: 6 additions & 1 deletion css/pane.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
p {
margin: 8px 16px;
&.desc { font-size: 13px; }
&.row {
&.row:not([hidden]) {
display: flex;
flex-direction: row;
align-items: center;
Expand Down Expand Up @@ -129,6 +129,11 @@
}
}

#icons {
font-size: inherit;
&, option { font-family: FontAwesome; }
}

footer {
display: flex;
flex-direction: row;
Expand Down
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
</head>
<body>
<main>
<div id="tip">Type <code>:screenshot --selector svg</code> in Firefox Console to save the Map as an image! For more tips/news, follow <a href="https://twitter.com/my_mind_app">@my_mind_app</a>.</div>
<div id="tip">This app's internals have been recently overhauled &ndash; report any <a href="https://github.com/ondras/my-mind/issues">issues</a> you encounter! For more tips/news, follow <a href="https://twitter.com/my_mind_app">@my_mind_app</a>.</div>
<!-- <div id="tip">Type <code>:screenshot --selector svg</code> in Firefox Console to save the Map as an image! For more tips/news, follow <a href="https://twitter.com/my_mind_app">@my_mind_app</a>.</div> -->
<!-- <div id="tip">Press ‘Tab’ to Insert Child, ‘Enter’ to Insert Sibling Node. For more tips/news, follow <a href="https://twitter.com/my_mind_app">@my_mind_app</a>.</div> -->
</main>

Expand Down Expand Up @@ -80,7 +81,7 @@ <h3>My Mind</h3>

<p>
<label><span>Icons</span>
<select id="icons" class="fa-select">
<select id="icons">
<option value=''>None</option>
<option value='fa-500px'>&#xf26e; 500px</option>
<option value='fa-address-book'>&#xf2b9; address-book</option>
Expand Down Expand Up @@ -904,15 +905,15 @@ <h3></h3>
</div>

<div id="image">
<p class="desc">Export your design as a PNG image.</p>
<p class="desc">Export your design as an image.</p>
<p data-for="save">
<label><span>Format</span>
<select class="format">
<option value="png">PNG</option>
<option value="svg">SVG</option>
</select></label>
</p>
<p class="row" data-for="save">
<p class="row">
<button class="go"></button><button class="cancel">Cancel</button>
</p>
</div>
Expand Down
10 changes: 8 additions & 2 deletions my-mind.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions my-mind.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@
this.prefix = "mm.map";
}
save(data, id, name) {
localStorage.setItem(this.prefix + id, data);
localStorage.setItem(`${this.prefix}.${id}`, data);
let names = this.list();
names[id] = name;
localStorage.setItem(`${this.prefix}.names`, JSON.stringify(names));
Expand Down Expand Up @@ -2557,10 +2557,11 @@ ${text}`);
} else {
history.replaceState(null, "", ".");
}
return;
} catch (e) {
}
return;
}
setThrobber(false);
}
function show(mode2) {
currentMode = mode2;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class Local extends Backend {
constructor() { super("local"); }

save(data: string, id: string, name: string) {
localStorage.setItem(this.prefix + id, data);
localStorage.setItem(`${this.prefix}.${id}`, data);

let names = this.list();
names[id] = name;
Expand Down
5 changes: 4 additions & 1 deletion src/ui/io.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as pubsub from "../pubsub.js";
import * as app from "../my-mind.js";
import { Mode, repo } from "./backend/backend.js";

import BackendUI from "./backend/backend.js";
Expand Down Expand Up @@ -69,9 +70,11 @@ export function restore() {
} else {
history.replaceState(null, "", ".");
}
return;
} catch (e) { }
return;
}

app.setThrobber(false);
}

export function show(mode: Mode) {
Expand Down

0 comments on commit bc3d4a9

Please sign in to comment.