Skip to content

Commit

Permalink
🫚 Birim kökünü dışa aktar
Browse files Browse the repository at this point in the history
  • Loading branch information
KimlikDAO-bot committed Nov 25, 2023
1 parent e6a2a56 commit 2d794de
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 5 additions & 4 deletions birim/tckt/birim.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Gösterme = new Set([
/** @const {!Element} */
const Kartlar = /** @const {!Element} */(dom.adla("tcc"));
/** @const {!Element} */
const Tckt = /** @const {!Element} */(dom.adla("tc"));
const Kök = /** @const {!Element} */(dom.adla("tc"));
/** @const {!Element} */
const SolDüğme = /** @const {!Element} */(dom.adla("tcso"));
/** @const {!Element} */
Expand All @@ -38,12 +38,12 @@ SağDüğme.onclick = () => kartDeğiştir((Kart + 1) % KartSayısı);
/**
* @param {boolean} bilgiYüzü
*/
const yüzGöster = (bilgiYüzü) => Tckt.classList.toggle("flp", bilgiYüzü);
const yüzGöster = (bilgiYüzü) => Kök.classList.toggle("flp", bilgiYüzü);

/**
* @return {boolean}
*/
const çevir = () => Tckt.classList.toggle("flp");
const çevir = () => Kök.classList.toggle("flp");

/**
* @param {!did.PersonInfo} personInfo
Expand Down Expand Up @@ -115,10 +115,11 @@ const açıkTcktGöster = (açıkTckt) => {
contactInfoGöster(/** @type {?did.ContactInfo} */(açıkTckt["contactInfo"]));
addressInfoGöster(/** @type {?did.AddressInfo} */(açıkTckt["addressInfo"]));
kütükBilgileriGöster(/** @type {?did.KütükBilgileri} */(açıkTckt["kütükBilgileri"]));
Tckt.classList.add("flp");
Kök.classList.add("flp");
}

export default {
Kök,
açıkTcktGöster,
çevir,
yüzGöster
Expand Down
8 changes: 3 additions & 5 deletions birim/telefon/birim.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Tckt from "/birim/tckt/birim";
import dom from "/lib/util/dom";

/** @const {!Element} */
const Nft = /** @type {!Element} */(dom.adla("tc"));
/** @const {!Element} */
const NftDüğmesi = /** @type {!Element} */(dom.adla("tez"));
/** @const {!Element} */
Expand Down Expand Up @@ -61,20 +59,20 @@ const nftGöster = (kutudaGöster, bilgiYüzü) => {
}
yüzGöster();
if (kutudaGöster) {
Nft.style.opacity = "";
Tckt.Kök.style.opacity = "";
dom.göster(NftDüğmesi);
NftDüğmesi.onclick ||= () => {
bilgiYüzü = !bilgiYüzü;
yüzGöster();
}
}

Nft.classList.toggle("tew", !kutudaGöster);
Tckt.Kök.classList.toggle("tew", !kutudaGöster);
NftDüğmesi.classList.toggle("teg", kutudaGöster);
}

const nftGeriAl = () => {
Nft.classList.add("tex");
Tckt.Kök.classList.add("tex");
nftGöster(true, false);
}

Expand Down
2 changes: 1 addition & 1 deletion incele/sayfa.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Cüzdan.tcktDeğişince((_, dosyaSözü) => {
EşikAzaltmaDüğmesi.onclick = tcktVar ? eşikKutusuGöster : null;
SilDüğmesi.onclick = tcktVar ? silKutusuGöster : null;
dom.gösterGizle(AçDüğmesi, tcktVar);
dom.gösterGizle(TcktVar, tcktVar);
dom.gösterGizle(Tckt.Kök, tcktVar);
dom.gösterGizle(TcktYok, !tcktVar);

if (tcktVar)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"toml": "^3.0.0",
"uglify-js": "^3.16.2",
"vite": "^5.0.2",
"wrangler": "^3.16.0"
"wrangler": "^3.17.1"
}
}

0 comments on commit 2d794de

Please sign in to comment.