avances en plantillas
This commit is contained in:
parent
0f84beacf1
commit
da0530d79b
2062 changed files with 598814 additions and 22 deletions
27
storage/public/dist/js/tabler-theme.esm.js
vendored
Normal file
27
storage/public/dist/js/tabler-theme.esm.js
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const themeConfig = {
|
||||
"theme": "light",
|
||||
"theme-base": "gray",
|
||||
"theme-font": "sans-serif",
|
||||
"theme-primary": "blue",
|
||||
"theme-radius": "1"
|
||||
};
|
||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
||||
get: (searchParams, prop) => searchParams.get(prop)
|
||||
});
|
||||
for (const key in themeConfig) {
|
||||
const param = params[key];
|
||||
let selectedValue;
|
||||
if (!!param) {
|
||||
localStorage.setItem("tabler-" + key, param);
|
||||
selectedValue = param;
|
||||
} else {
|
||||
const storedTheme = localStorage.getItem("tabler-" + key);
|
||||
selectedValue = storedTheme ? storedTheme : themeConfig[key];
|
||||
}
|
||||
if (selectedValue !== themeConfig[key]) {
|
||||
document.documentElement.setAttribute("data-bs-" + key, selectedValue);
|
||||
} else {
|
||||
document.documentElement.removeAttribute("data-bs-" + key);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=tabler-theme.esm.js.map
|
||||
1
storage/public/dist/js/tabler-theme.esm.js.map
vendored
Normal file
1
storage/public/dist/js/tabler-theme.esm.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tabler-theme.esm.js","sources":["../../js/tabler-theme.ts"],"sourcesContent":["/**\n * demo-theme is specifically loaded right after the body and not deferred\n * to ensure we switch to the chosen dark/light theme as fast as possible.\n * This will prevent any flashes of the light theme (default) before switching.\n */\ninterface ThemeConfig {\n 'theme': string\n 'theme-base': string\n 'theme-font': string\n 'theme-primary': string\n 'theme-radius': string\n}\n\nconst themeConfig: ThemeConfig = {\n 'theme': 'light',\n 'theme-base': 'gray',\n 'theme-font': 'sans-serif',\n 'theme-primary': 'blue',\n 'theme-radius': '1',\n}\n\nconst params = new Proxy(new URLSearchParams(window.location.search), {\n get: (searchParams: URLSearchParams, prop: string): string | null => searchParams.get(prop),\n})\n\nfor (const key in themeConfig) {\n const param = params[key]\n let selectedValue: string\n\n if (!!param) {\n localStorage.setItem('tabler-' + key, param)\n selectedValue = param\n } else {\n const storedTheme = localStorage.getItem('tabler-' + key)\n selectedValue = storedTheme ? storedTheme : themeConfig[key as keyof ThemeConfig]\n }\n\n if (selectedValue !== themeConfig[key as keyof ThemeConfig]) {\n document.documentElement.setAttribute('data-bs-' + key, selectedValue)\n } else {\n document.documentElement.removeAttribute('data-bs-' + key)\n }\n}\n"],"names":[],"mappings":"AAaA,MAAM,cAA2B;AAAA,EAC/B,SAAS;AAAA,EACT,cAAc;AAAA,EACd,cAAc;AAAA,EACd,iBAAiB;AAAA,EACjB,gBAAgB;AAClB;AAEA,MAAM,SAAS,IAAI,MAAM,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAAG;AAAA,EACpE,KAAK,CAAC,cAA+B,SAAgC,aAAa,IAAI,IAAI;AAC5F,CAAC;AAED,WAAW,OAAO,aAAa;AAC7B,QAAM,QAAQ,OAAO,GAAG;AACxB,MAAI;AAEJ,MAAI,CAAC,CAAC,OAAO;AACX,iBAAa,QAAQ,YAAY,KAAK,KAAK;AAC3C,oBAAgB;AAAA,EAClB,OAAO;AACL,UAAM,cAAc,aAAa,QAAQ,YAAY,GAAG;AACxD,oBAAgB,cAAc,cAAc,YAAY,GAAwB;AAAA,EAClF;AAEA,MAAI,kBAAkB,YAAY,GAAwB,GAAG;AAC3D,aAAS,gBAAgB,aAAa,aAAa,KAAK,aAAa;AAAA,EACvE,OAAO;AACL,aAAS,gBAAgB,gBAAgB,aAAa,GAAG;AAAA,EAC3D;AACF;"}
|
||||
32
storage/public/dist/js/tabler-theme.js
vendored
Normal file
32
storage/public/dist/js/tabler-theme.js
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
(function(factory) {
|
||||
typeof define === "function" && define.amd ? define(factory) : factory();
|
||||
})((function() {
|
||||
"use strict";
|
||||
const themeConfig = {
|
||||
"theme": "light",
|
||||
"theme-base": "gray",
|
||||
"theme-font": "sans-serif",
|
||||
"theme-primary": "blue",
|
||||
"theme-radius": "1"
|
||||
};
|
||||
const params = new Proxy(new URLSearchParams(window.location.search), {
|
||||
get: (searchParams, prop) => searchParams.get(prop)
|
||||
});
|
||||
for (const key in themeConfig) {
|
||||
const param = params[key];
|
||||
let selectedValue;
|
||||
if (!!param) {
|
||||
localStorage.setItem("tabler-" + key, param);
|
||||
selectedValue = param;
|
||||
} else {
|
||||
const storedTheme = localStorage.getItem("tabler-" + key);
|
||||
selectedValue = storedTheme ? storedTheme : themeConfig[key];
|
||||
}
|
||||
if (selectedValue !== themeConfig[key]) {
|
||||
document.documentElement.setAttribute("data-bs-" + key, selectedValue);
|
||||
} else {
|
||||
document.documentElement.removeAttribute("data-bs-" + key);
|
||||
}
|
||||
}
|
||||
}));
|
||||
//# sourceMappingURL=tabler-theme.js.map
|
||||
1
storage/public/dist/js/tabler-theme.js.map
vendored
Normal file
1
storage/public/dist/js/tabler-theme.js.map
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tabler-theme.js","sources":["../../js/tabler-theme.ts"],"sourcesContent":["/**\n * demo-theme is specifically loaded right after the body and not deferred\n * to ensure we switch to the chosen dark/light theme as fast as possible.\n * This will prevent any flashes of the light theme (default) before switching.\n */\ninterface ThemeConfig {\n 'theme': string\n 'theme-base': string\n 'theme-font': string\n 'theme-primary': string\n 'theme-radius': string\n}\n\nconst themeConfig: ThemeConfig = {\n 'theme': 'light',\n 'theme-base': 'gray',\n 'theme-font': 'sans-serif',\n 'theme-primary': 'blue',\n 'theme-radius': '1',\n}\n\nconst params = new Proxy(new URLSearchParams(window.location.search), {\n get: (searchParams: URLSearchParams, prop: string): string | null => searchParams.get(prop),\n})\n\nfor (const key in themeConfig) {\n const param = params[key]\n let selectedValue: string\n\n if (!!param) {\n localStorage.setItem('tabler-' + key, param)\n selectedValue = param\n } else {\n const storedTheme = localStorage.getItem('tabler-' + key)\n selectedValue = storedTheme ? storedTheme : themeConfig[key as keyof ThemeConfig]\n }\n\n if (selectedValue !== themeConfig[key as keyof ThemeConfig]) {\n document.documentElement.setAttribute('data-bs-' + key, selectedValue)\n } else {\n document.documentElement.removeAttribute('data-bs-' + key)\n }\n}\n"],"names":[],"mappings":";;;;AAaA,QAAM,cAA2B;AAAA,IAC/B,SAAS;AAAA,IACT,cAAc;AAAA,IACd,cAAc;AAAA,IACd,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,EAClB;AAEA,QAAM,SAAS,IAAI,MAAM,IAAI,gBAAgB,OAAO,SAAS,MAAM,GAAG;AAAA,IACpE,KAAK,CAAC,cAA+B,SAAgC,aAAa,IAAI,IAAI;AAAA,EAC5F,CAAC;AAED,aAAW,OAAO,aAAa;AAC7B,UAAM,QAAQ,OAAO,GAAG;AACxB,QAAI;AAEJ,QAAI,CAAC,CAAC,OAAO;AACX,mBAAa,QAAQ,YAAY,KAAK,KAAK;AAC3C,sBAAgB;AAAA,IAClB,OAAO;AACL,YAAM,cAAc,aAAa,QAAQ,YAAY,GAAG;AACxD,sBAAgB,cAAc,cAAc,YAAY,GAAwB;AAAA,IAClF;AAEA,QAAI,kBAAkB,YAAY,GAAwB,GAAG;AAC3D,eAAS,gBAAgB,aAAa,aAAa,KAAK,aAAa;AAAA,IACvE,OAAO;AACL,eAAS,gBAAgB,gBAAgB,aAAa,GAAG;AAAA,IAC3D;AAAA,EACF;;"}
|
||||
5017
storage/public/dist/js/tabler.esm.js
vendored
Normal file
5017
storage/public/dist/js/tabler.esm.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
storage/public/dist/js/tabler.esm.js.map
vendored
Normal file
1
storage/public/dist/js/tabler.esm.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
5020
storage/public/dist/js/tabler.js
vendored
Normal file
5020
storage/public/dist/js/tabler.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
1
storage/public/dist/js/tabler.js.map
vendored
Normal file
1
storage/public/dist/js/tabler.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue