Implement search (#3)

* Handle settings response properly
* Change location of default store settings
* Generate chrome extension
* Move popup into its own folder
* Move distribution javascript into new folder
* Remove checkpoint
* Ignore dist JS files
* Rename background source file
* Update clean rule
* Fix make rule for generated files
* Also tidy CSS files
* Implement searching
* Add icon to search bar
* Add copy-password action
* Add copy-user action
* Add launch action
* Button styling
* Send action to backend
* Set targets to .PHONY
* Highlight the first entry
* Allow disabling fuzzy search by starting search with a space
This commit is contained in:
Erayd
2018-04-19 23:57:51 +12:00
committed by GitHub
parent cc6aa2440d
commit 92f2ecea1b
17 changed files with 584 additions and 255 deletions

31
Makefile Normal file
View File

@@ -0,0 +1,31 @@
CLEAN_FILES := chrome
.PHONY: all
all: extension chrome
.PHONY: extension
extension:
$(MAKE) -C src
CHROME_FILES := manifest.json \
*.css \
*.png \
popup/*.html \
popup/*.css \
popup/*.svg
CHROME_FILES := $(wildcard $(addprefix src/,$(CHROME_FILES))) \
src/js/background.dist.js \
src/js/popup.dist.js
CHROME_FILES := $(patsubst src/%,chrome/%,$(CHROME_FILES))
.PHONY: chrome
chrome: extension $(CHROME_FILES)
$(CHROME_FILES) : chrome/% : src/%
[ -d $(dir $@) ] || mkdir -p $(dir $@)
cp $< $@
.PHONY: clean
clean:
rm -rf $(CLEAN_FILES)
$(MAKE) -C src clean