Skip to content

Commit

Permalink
🪁 kimlikdao-js framework'e geç
Browse files Browse the repository at this point in the history
  • Loading branch information
KimlikDAO-bot committed Dec 3, 2023
1 parent 6814fe1 commit cfed3de
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 505 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MAKEFLAGS := -j 8

all: build

include tools/Makefile
include lib/birimler/Makefile
include al/Makefile
include ana/Makefile
include birim/Makefile
Expand All @@ -26,7 +26,4 @@ cf-deployment: build build/sunucu/prod.js build/sitemap sunucu/prod.toml
--config sunucu/prod.toml \
--compatibility-date $(shell date -v -1d +%Y-%m-%d)

cf-trim: cf-deployment
tools/cftrimmer.py sunucu/prod.toml sunucu/Makefile

.PHONY: cf-deployment cf-trim clean dev staging
12 changes: 6 additions & 6 deletions al/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ build/al/sayfa-%.js: al/sayfa.js \
--entry_point $< \
--js $(filter %.js,$^) \
--js_output_file $@
tools/keymapper.py $@ $(filter %.keymap,$^)
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn uglifyjs $@ -m -c toplevel,unsafe -o $@
wc $@

Expand All @@ -42,11 +42,11 @@ build/al/sayfa.css: al/sayfa.css al/*/*.css birim/kutu.css

build/al/sayfa.keymap: $(call compressions, build/al/sayfa.css)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/al/sayfa.css
node lib/birimler/hasher $@ build/al/sayfa.css

build/al/sayfa-%.keymap: $(call compressions, build/al/sayfa-%.js)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/al/sayfa-$*.js
node lib/birimler/hasher $@ build/al/sayfa-$*.js

build/al-%.html: al/sayfa.html \
al/imeceİptal/birim.html \
Expand All @@ -69,6 +69,6 @@ build/al-%.html: al/sayfa.html \
build/birim/lato/l700-%.keymap \
build/birim/paralar/birim.keymap \
build/birim/tckt/birim.keymap
node tools/htmlProcessor $< $*
tools/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c tools/html-minifier.conf $@ -o $@
node lib/birimler/işleyici $< $*
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c lib/birimler/htmlMinifierConfig.json $@ -o $@
2 changes: 1 addition & 1 deletion al/tanışma/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AL_TANIŞMA_REQUEST_SVG_OUT := $(addprefix build/al/tanışma/, $(AL_TANIŞMA_RE

build/al/tanışma/birim.keymap: $(call compressions, $(AL_TANIŞMA_REQUEST_SVG_OUT) build/al/tanışma/powWorker.js)
mkdir -p $(dir $@) && rm -rf $@
tools/keyhasher.py $@ $(AL_TANIŞMA_REQUEST_SVG_OUT) build/al/tanışma/powWorker.js
node lib/birimler/hasher $@ $(AL_TANIŞMA_REQUEST_SVG_OUT) build/al/tanışma/powWorker.js

al/tanışma.birim: al/tanışma/birim.html $(AL_TANIŞMA_INLINE_SVG_OUT)

Expand Down
8 changes: 4 additions & 4 deletions ana/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ build/ana/sayfa-%.css: \
# callsite depend on build/ana/sayfa-%.keymap
build/ana/sayfa-%.keymap: $(call compressions, build/ana/sayfa-%.js build/ana/sayfa-%.css)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/ana/sayfa-$*.js build/ana/sayfa-$*.css
node lib/birimler/hasher $@ build/ana/sayfa-$*.js build/ana/sayfa-$*.css
sed -i.bak 's#/ana/sayfa.css#/birim/ortak.css#' $@

build/ana-%.html: ana/sayfa.html \
Expand All @@ -64,6 +64,6 @@ build/ana-%.html: ana/sayfa.html \
build/birim/lato/l400.keymap \
build/birim/lato/l700-%.keymap \
build/birim/tckt/birim.keymap
node tools/htmlProcessor $< $*
tools/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c tools/html-minifier.conf $@ -o $@
node lib/birimler/işleyici $< $*
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c lib/birimler/htmlMinifierConfig.json $@ -o $@
7 changes: 4 additions & 3 deletions birim/başlık/birim.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div id="ba">
<a data-set-href="link" href="/" id="bag"><img id=bak src="/birim/logo.svg" data-inline /><span
data-phantom data-set-innertext="title">KimlikDAO</span></a>
<a data-set-href="link" href="/" id="bag"><img id=bak src="/birim/logo.svg" data-inline /><span data-phantom
data-set-innertext="title">KimlikDAO</span></a>
<div id="baf">
<birim:dil />
<birim:cüzdan data-chains="0x1|0xa4b1,Ana ağ,Signal chain,default|0xa86a,Önerilir,Recommended|0x89|0x38|0xfa"/>
<birim:cüzdan data-set-data-chains="chains"
data-chains="0x1|0xa4b1,Ana ağ,Signal chain,default|0xa86a,Önerilir,Recommended|0x89|0x38|0xfa" />
</div>
</div>
2 changes: 1 addition & 1 deletion birim/cüzdan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CÜZDAN_REQUEST_SVG_OUT := $(addprefix build/birim/cüzdan/img/, $(CÜZDAN_REQUE

build/birim/cüzdan/birim.keymap: $(call compressions, $(CÜZDAN_REQUEST_SVG_OUT))
mkdir -p $(dir $@) && rm -rf $@
tools/keyhasher.py $@ $(CÜZDAN_REQUEST_SVG_OUT)
node lib/birimler/hasher $@ $(CÜZDAN_REQUEST_SVG_OUT)

birim/cüzdan.birim: birim/cüzdan/birim.html \
$(CÜZDAN_INLINE_SVG_OUT) \
Expand Down
5 changes: 3 additions & 2 deletions birim/cüzdan/birim.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
border-radius: 10px;
box-shadow: 0px 1px 20px rgba(0, 0, 0, 0.2);
display: flex;
position: absolute;
left: -121px;
min-height: 349px;
outline: 0;
position: absolute;
top: 53px;
width: 380px;
z-index: 20;
outline: 0;
}

@media (max-width: 1350px) {
Expand Down
2 changes: 1 addition & 1 deletion birim/dil/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ DİL_REQUEST_SVG_OUT := $(addprefix build/birim/dil/, $(DİL_REQUEST_SVG))

build/birim/dil/birim.keymap: $(call compressions, $(DİL_REQUEST_SVG_OUT))
mkdir -p $(dir $@) && rm -rf $@
tools/keyhasher.py $@ $(DİL_REQUEST_SVG_OUT)
node lib/birimler/hasher $@ $(DİL_REQUEST_SVG_OUT)

birim/dil.birim: birim/dil/birim.html
4 changes: 2 additions & 2 deletions birim/favicon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build/favicon.ico: \
build/birim/favicon/birim.keymap: $(call compressions, build/birim/favicon/icon.svg) \
build/birim/favicon/icon32.png
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/birim/favicon/icon.svg
tools/keyhasher.py $@ --nocompress build/birim/favicon/icon32.png
node lib/birimler/hasher $@ build/birim/favicon/icon.svg
node lib/birimler/hasher $@ --nocompress build/birim/favicon/icon32.png

birim/favicon.birim: birim/favicon/birim.html
12 changes: 6 additions & 6 deletions birim/lato/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ l400Files = $(addprefix build/birim/lato/,$(addsuffix .$(1), l400))
build/birim/lato/l400.css: birim/lato/l400.css \
build/birim/lato/l400.keymap
mkdir -p $(dir $@)
tools/keymapper.py $^ -o $@
lib/birimler/keymapper.py $^ -o $@

build/birim/lato/l700-%.css: birim/lato/l700.css \
build/birim/lato/l700-%.keymap
mkdir -p $(dir $@)
tools/keymapper.py $^ -o $@
lib/birimler/keymapper.py $^ -o $@

build/birim/lato/l400.keymap: \
$(call compressions, $(call l400Files,ttf)) \
$(call l400Files,woff2)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ $(call l400Files,ttf)
tools/keyhasher.py $@ --nocompress $(call l400Files,woff2)
node lib/birimler/hasher $@ $(call l400Files,ttf)
node lib/birimler/hasher $@ --nocompress $(call l400Files,woff2)

build/birim/lato/l700-%.keymap: \
$(call compressions, $(call l700Files,%,ttf)) \
$(call l700Files,%,woff2)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ $(call l700Files,$*,ttf)
tools/keyhasher.py $@ --nocompress $(call l700Files,$*,woff2)
node lib/birimler/hasher $@ $(call l700Files,$*,ttf)
node lib/birimler/hasher $@ --nocompress $(call l700Files,$*,woff2)

build/birim/lato/%.ttf: birim/lato/%.txt
mkdir -p $(dir $@)
Expand Down
2 changes: 1 addition & 1 deletion birim/paralar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ BIRIM_PARALAR_SVG_OUT := $(addprefix build/, $(wildcard birim/paralar/*.svg))

build/birim/paralar/birim.keymap: $(call compressions, $(BIRIM_PARALAR_SVG_OUT))
mkdir -p $(dir $@) && rm -rf $@
tools/keyhasher.py $@ $(BIRIM_PARALAR_SVG_OUT)
node lib/birimler/hasher $@ $(BIRIM_PARALAR_SVG_OUT)
10 changes: 5 additions & 5 deletions incele/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ build/incele/sayfa.css: incele/sayfa.css incele/*/*.css birim/kutu.css

build/incele/sayfa.keymap: $(call compressions, build/incele/sayfa.css)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/incele/sayfa.css
node lib/birimler/hasher $@ build/incele/sayfa.css

build/incele/sayfa-%.keymap: $(call compressions, build/incele/sayfa-%.js)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/incele/sayfa-$*.js
node lib/birimler/hasher $@ build/incele/sayfa-$*.js

build/incele-%.html: incele/sayfa.html \
birim/başlık.birim \
Expand All @@ -52,6 +52,6 @@ build/incele-%.html: incele/sayfa.html \
build/birim/lato/l400.keymap \
build/birim/lato/l700-%.keymap \
build/birim/tckt/birim.keymap
node tools/htmlProcessor $< $*
tools/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c tools/html-minifier.conf $@ -o $@
node lib/birimler/işleyici $< $*
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c lib/birimler/htmlMinifierConfig.json $@ -o $@
10 changes: 5 additions & 5 deletions iptal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ build/iptal/sayfa.css: iptal/sayfa.css

build/iptal/sayfa.keymap: $(call compressions, build/iptal/sayfa.css)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/iptal/sayfa.css
node lib/birimler/hasher $@ build/iptal/sayfa.css

build/iptal/sayfa-%.keymap: $(call compressions, build/iptal/sayfa-%.js)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/iptal/sayfa-$*.js
node lib/birimler/hasher $@ build/iptal/sayfa-$*.js

build/iptal-%.html: iptal/sayfa.html \
birim/başlık.birim \
Expand All @@ -51,6 +51,6 @@ build/iptal-%.html: iptal/sayfa.html \
build/birim/favicon/birim.keymap \
build/birim/lato/l400.keymap \
build/birim/lato/l700-%.keymap
node tools/htmlProcessor $< $*
tools/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c tools/html-minifier.conf $@ -o $@
node lib/birimler/işleyici $< $*
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c lib/birimler/htmlMinifierConfig.json $@ -o $@
10 changes: 5 additions & 5 deletions oyla/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ build/oyla/sayfa.css: oyla/sayfa.css oyla/*/*.css

build/oyla/sayfa.keymap: $(call compressions, build/oyla/sayfa.css)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/oyla/sayfa.css
node lib/birimler/hasher $@ build/oyla/sayfa.css

build/oyla/sayfa-%.keymap: $(call compressions, build/oyla/sayfa-%.js)
mkdir -p $(dir $@) && > $@
tools/keyhasher.py $@ build/oyla/sayfa-$*.js
node lib/birimler/hasher $@ build/oyla/sayfa-$*.js

build/oyla-%.html: oyla/sayfa.html \
birim/başlık.birim \
Expand All @@ -53,6 +53,6 @@ build/oyla-%.html: oyla/sayfa.html \
build/birim/lato/l400.keymap \
build/birim/lato/l700-%.keymap \
build/birim/paralar/birim.keymap
node tools/htmlProcessor $< $*
tools/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c tools/html-minifier.conf $@ -o $@
node lib/birimler/işleyici $< $*
lib/birimler/keymapper.py $@ $(filter %.keymap,$^)
yarn html-minifier -c lib/birimler/htmlMinifierConfig.json $@ -o $@
4 changes: 2 additions & 2 deletions sunucu/dev.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { readFileSync } from "fs";
import { parse } from "toml";
import { devSunucu } from "../lib/util/sunucu.js";
import { devSunucu } from "../lib/birimler/devSunucu.js";

const config = parse(readFileSync('sunucu/dev.toml'));
const config = parse(readFileSync("sunucu/dev.toml"));

devSunucu({
port: config.port,
Expand Down
30 changes: 0 additions & 30 deletions tools/Makefile

This file was deleted.

76 changes: 0 additions & 76 deletions tools/cftrimmer.py

This file was deleted.

Loading

0 comments on commit cfed3de

Please sign in to comment.