bundle
This commit is contained in:
parent
ceecbb4952
commit
2edde27e59
5 changed files with 1764 additions and 17 deletions
9
Makefile
9
Makefile
|
@ -1,17 +1,22 @@
|
||||||
LESS := $(shell npm bin)/lessc
|
LESS := $(shell npm bin)/lessc
|
||||||
|
ROLLUP := $(shell npm bin)/rollup
|
||||||
APP := app
|
APP := app
|
||||||
CSS := $(APP)/cyp.css
|
CSS := $(APP)/cyp.css
|
||||||
|
JS := $(APP)/cyp.js
|
||||||
ICONS := $(APP)/js/icons.js
|
ICONS := $(APP)/js/icons.js
|
||||||
SYSD_USER := ~/.config/systemd/user
|
SYSD_USER := ~/.config/systemd/user
|
||||||
SERVICE := cyp.service
|
SERVICE := cyp.service
|
||||||
|
|
||||||
all: $(CSS)
|
all: $(CSS) $(JS)
|
||||||
|
|
||||||
icons: $(ICONS)
|
icons: $(ICONS)
|
||||||
|
|
||||||
$(ICONS): $(APP)/icons/*
|
$(ICONS): $(APP)/icons/*
|
||||||
$(APP)/svg2js.sh $(APP)/icons > $@
|
$(APP)/svg2js.sh $(APP)/icons > $@
|
||||||
|
|
||||||
|
$(JS): $(APP)/js/* $(APP)/js/elements/*
|
||||||
|
$(ROLLUP) -i $(APP)/js/cyp.js > $@
|
||||||
|
|
||||||
$(CSS): $(APP)/css/* $(APP)/css/elements/*
|
$(CSS): $(APP)/css/* $(APP)/css/elements/*
|
||||||
$(LESS) -x $(APP)/css/cyp.less > $@
|
$(LESS) -x $(APP)/css/cyp.less > $@
|
||||||
|
|
||||||
|
@ -25,7 +30,7 @@ watch: all
|
||||||
while inotifywait -e MODIFY -r $(APP)/css $(APP)/js ; do make $^ ; done
|
while inotifywait -e MODIFY -r $(APP)/css $(APP)/js ; do make $^ ; done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(SERVICE) $(CSS)
|
rm -f $(SERVICE) $(CSS) $(JS)
|
||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
docker build -t cyp .
|
docker build -t cyp .
|
||||||
|
|
1741
app/cyp.js
Normal file
1741
app/cyp.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -88,25 +88,12 @@
|
||||||
</button>
|
</button>
|
||||||
<button data-for="playlists" data-icon="playlist-music"><span>Playlists</span></button>
|
<button data-for="playlists" data-icon="playlist-music"><span>Playlists</span></button>
|
||||||
<button data-for="library" data-icon="library-music"><span>Library</span></button>
|
<button data-for="library" data-icon="library-music"><span>Library</span></button>
|
||||||
<!-- <button data-for="fs" data-icon="folder"><span>Files</span></button> -->
|
|
||||||
<button data-for="yt" data-icon="download"><span>YouTube</span></button>
|
<button data-for="yt" data-icon="download"><span>YouTube</span></button>
|
||||||
<button data-for="settings" data-icon="settings"><span>Settings</span></button>
|
<button data-for="settings" data-icon="settings"><span>Settings</span></button>
|
||||||
</cyp-menu>
|
</cyp-menu>
|
||||||
</footer>
|
</footer>
|
||||||
</cyp-app>
|
</cyp-app>
|
||||||
|
|
||||||
<script type="module" src="js/elements/range.js"></script>
|
<script type="module" src="cyp.js"></script>
|
||||||
<script type="module" src="js/elements/app.js"></script>
|
|
||||||
<script type="module" src="js/elements/menu.js"></script>
|
|
||||||
<script type="module" src="js/elements/player.js"></script>
|
|
||||||
<script type="module" src="js/elements/queue.js"></script>
|
|
||||||
<script type="module" src="js/elements/playlists.js"></script>
|
|
||||||
<script type="module" src="js/elements/settings.js"></script>
|
|
||||||
<script type="module" src="js/elements/yt.js"></script>
|
|
||||||
<script type="module" src="js/elements/song.js"></script>
|
|
||||||
<script type="module" src="js/elements/library.js"></script>
|
|
||||||
<script type="module" src="js/elements/tag.js"></script>
|
|
||||||
<script type="module" src="js/elements/back.js"></script>
|
|
||||||
<script type="module" src="js/elements/path.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
13
app/js/cyp.js
Normal file
13
app/js/cyp.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import "./elements/range.js";
|
||||||
|
import "./elements/app.js";
|
||||||
|
import "./elements/menu.js";
|
||||||
|
import "./elements/player.js";
|
||||||
|
import "./elements/queue.js";
|
||||||
|
import "./elements/playlists.js";
|
||||||
|
import "./elements/settings.js";
|
||||||
|
import "./elements/yt.js";
|
||||||
|
import "./elements/song.js";
|
||||||
|
import "./elements/library.js";
|
||||||
|
import "./elements/tag.js";
|
||||||
|
import "./elements/back.js";
|
||||||
|
import "./elements/path.js";
|
|
@ -9,7 +9,8 @@
|
||||||
"ws2mpd": "^2.0.0"
|
"ws2mpd": "^2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"less": "^3.9.0"
|
"less": "^3.9.0",
|
||||||
|
"rollup": "^2.0.6"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|
Loading…
Reference in a new issue