-
-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from ondras/master
Merge with upstream (ts+svg)
- Loading branch information
Showing
144 changed files
with
11,411 additions
and
12,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,30 @@ | ||
SOURCES = src/mm.js \ | ||
src/promise.js \ | ||
src/promise-addons.js \ | ||
src/repo.js \ | ||
src/item.js \ | ||
src/map.js \ | ||
src/keyboard.js \ | ||
src/tip.js \ | ||
src/action.js \ | ||
src/clipboard.js \ | ||
src/menu.js \ | ||
src/command.js \ | ||
src/command.edit.js \ | ||
src/command.select.js \ | ||
src/layout.js \ | ||
src/layout.graph.js \ | ||
src/layout.tree.js \ | ||
src/layout.map.js \ | ||
src/shape.js \ | ||
src/shape.underline.js \ | ||
src/shape.box.js \ | ||
src/shape.ellipse.js \ | ||
src/format.js \ | ||
src/format.json.js \ | ||
src/format.freemind.js \ | ||
src/format.mma.js \ | ||
src/format.mup.js \ | ||
src/format.plaintext.js \ | ||
src/backend.js \ | ||
src/backend.local.js \ | ||
src/backend.webdav.js \ | ||
src/backend.image.js \ | ||
src/backend.file.js \ | ||
src/backend.firebase.js \ | ||
src/backend.gdrive.js \ | ||
src/ui.js \ | ||
src/ui.layout.js \ | ||
src/ui.shape.js \ | ||
src/ui.value.js \ | ||
src/ui.status.js \ | ||
src/ui.color.js \ | ||
src/ui.icon.js \ | ||
src/ui.help.js \ | ||
src/ui.notes.js \ | ||
src/ui.io.js \ | ||
src/ui.backend.js \ | ||
src/ui.backend.file.js \ | ||
src/ui.backend.webdav.js \ | ||
src/ui.backend.image.js \ | ||
src/ui.backend.local.js \ | ||
src/ui.backend.firebase.js \ | ||
src/ui.backend.gdrive.js \ | ||
src/mouse.js \ | ||
src/app.js | ||
MAKEOPTS := "-r" | ||
BIN := $(shell npm bin) | ||
TSC := $(BIN)/tsc | ||
LESSC := $(BIN)/lessc | ||
ESBUILD := $(BIN)/esbuild | ||
|
||
.PHONY: all push clean | ||
JS := .js | ||
FLAG := $(JS)/.tsflag | ||
APP := my-mind.js | ||
STYLE := my-mind.css map.css | ||
|
||
all: my-mind.js | ||
all: $(APP) $(STYLE) | ||
|
||
my-mind.js: $(SOURCES) | ||
@echo "/* My Mind web app: all source files combined. */" > $@ | ||
@cat $^ >> $@ | ||
%.css: css/*.less | ||
$(LESSC) css/$*.less > $@ | ||
|
||
push: | ||
@hg bookmark -f master | ||
@hg push ; true | ||
@hg push github ; true | ||
$(APP): $(FLAG) | ||
$(ESBUILD) --bundle $(JS)/$(APP) > $@ | ||
|
||
$(FLAG): $(shell find src -type f) | ||
$(TSC) -p src | ||
touch $@ | ||
|
||
watch: all | ||
while inotifywait -e MODIFY -r src css ; do $(MAKE) $^ ; done | ||
|
||
clean: | ||
@rm my-mind.js | ||
rm -rf $(JS) $(APP) $(STYLE) | ||
|
||
.PHONY: all clean watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#context-menu { | ||
&:not([hidden]) { display: flex; } | ||
|
||
position: absolute; | ||
border: 1px solid #666; | ||
background-color: #fff; | ||
box-shadow: 0 0 3px #666; | ||
flex-direction: column; | ||
width: 130px; | ||
|
||
button { | ||
background-color: transparent; | ||
border: none; | ||
margin: 0; | ||
padding: 3px 6px; | ||
font-size: 15px; | ||
text-align: left; | ||
&:hover { font-weight: bold; } | ||
} | ||
|
||
span { | ||
border-top: 1px solid #666; | ||
margin-top: 4px; | ||
padding-top: 4px; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.