repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/index.js | internal/view/js/index.js | import {
Root,
} from "./pages/_pages.min.js";
export function startApp() {
m.route(document.body, "/", {
"/": Root,
"/:page": Root,
})
} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/register.js | internal/view/js/register.js | import {
Button,
LoadingCover,
} from "./components/_components.min.js"
import {
request
} from "./libs/utils.min.js"
import {
i18n
} from "./i18n/i18n.min.js"
import Cookies from './libs/js-cookie.min.js'
function registerScreen() {
let state = {
loading: false,
name: "",
username: "",
password: "",
... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/login.js | internal/view/js/login.js | import {
Button,
LoadingCover,
} from "./components/_components.min.js"
import {
request
} from "./libs/utils.min.js"
import {
i18n
} from "./i18n/i18n.min.js"
import Cookies from './libs/js-cookie.min.js'
function loginScreen() {
let state = {
loading: false,
username: "",
password: "",
error: ""
}
... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/register.min.js | internal/view/js/register.min.js | import{Button,LoadingCover}from"./components/_components.min.js";import{request}from"./libs/utils.min.js";import{i18n}from"./i18n/i18n.min.js";import Cookies from"./libs/js-cookie.min.js";function registerScreen(){let e={loading:!1,name:"",username:"",password:"",repeatPassword:"",error:""};return{view:function(){let r... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/index.min.js | internal/view/js/index.min.js | import{Root}from"./pages/_pages.min.js";export function startApp(){m.route(document.body,"/",{"/":Root,"/:page":Root})} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/user.js | internal/view/js/pages/user.js | import {
LoadingCover,
UserList,
} from "../components/_components.min.js"
import {
DialogError,
DialogAlert,
DialogConfirm,
DialogFormUser,
} from "../dialogs/_dialogs.min.js"
import {
request,
cloneObject,
getActiveUser
} from "../libs/utils.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export func... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/home.js | internal/view/js/pages/home.js | import {
LoadingCover,
AccountList,
EntryList,
} from "../components/_components.min.js"
import {
DialogError,
DialogConfirm,
DialogFormAccount,
DialogEntryType,
DialogFormEntry,
} from "../dialogs/_dialogs.min.js"
import {
request,
cloneObject,
} from "../libs/utils.min.js"
import {
i18n
} from "../i18n/... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/_pages.min.js | internal/view/js/pages/_pages.min.js | export{Root}from"./root.min.js";export{HomePage}from"./home.min.js";export{ChartPage}from"./chart.min.js";export{UserPage}from"./user.min.js"; | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/chart.min.js | internal/view/js/pages/chart.min.js | import{LoadingCover,AccountChart}from"../components/_components.min.js";import{DialogError}from"../dialogs/_dialogs.min.js";import{request}from"../libs/utils.min.js";export function ChartPage(){let r={loading:!1,chart:{year:(new Date).getFullYear(),accounts:[],series:[],min:void 0,max:void 0},dlgError:{message:"",visib... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/_pages.js | internal/view/js/pages/_pages.js | export { Root } from "./root.min.js"
export { HomePage } from "./home.min.js"
export { ChartPage } from "./chart.min.js"
export { UserPage } from "./user.min.js" | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/root.js | internal/view/js/pages/root.js | import {
Button,
LoadingCover,
} from "../components/_components.min.js";
import {
DialogError,
DialogConfirm,
DialogLanguage,
DialogFormPassword
} from "../dialogs/_dialogs.min.js"
import {
HomePage,
ChartPage,
UserPage,
} from "./_pages.min.js"
import {
request,
getActiveUser
} from "../libs/utils.min.j... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/user.min.js | internal/view/js/pages/user.min.js | import{LoadingCover,UserList}from"../components/_components.min.js";import{DialogError,DialogAlert,DialogConfirm,DialogFormUser}from"../dialogs/_dialogs.min.js";import{request,cloneObject,getActiveUser}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function UserPage(){let e={loading:!1,activeUs... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/chart.js | internal/view/js/pages/chart.js | import {
LoadingCover,
AccountChart,
} from "../components/_components.min.js"
import {
DialogError,
} from "../dialogs/_dialogs.min.js"
import {
request,
} from "../libs/utils.min.js"
export function ChartPage() {
let state = {
loading: false,
chart: {
year: new Date().getFullYear(),
accounts: [],
... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/home.min.js | internal/view/js/pages/home.min.js | import{LoadingCover,AccountList,EntryList}from"../components/_components.min.js";import{DialogError,DialogConfirm,DialogFormAccount,DialogEntryType,DialogFormEntry}from"../dialogs/_dialogs.min.js";import{request,cloneObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";import{Big}from"../libs/big.min... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/pages/root.min.js | internal/view/js/pages/root.min.js | import{Button,LoadingCover}from"../components/_components.min.js";import{DialogError,DialogConfirm,DialogLanguage,DialogFormPassword}from"../dialogs/_dialogs.min.js";import{HomePage,ChartPage,UserPage}from"./_pages.min.js";import{request,getActiveUser}from"../libs/utils.min.js";import{i18n,setLanguage}from"../i18n/i18n... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/button.js | internal/view/js/components/button.js | /*
Button is the generic button. It has several custom attributes :
- `icon`, the FontAwesome icon..
- `caption`, the text for this button.
- `enabled`, specify whether this button enabled or not.
- `iconOnly`, specify whether this button only show the icon. If true, caption will be put on tooltip.
let attrs = {
ic... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/button.min.js | internal/view/js/components/button.min.js | import{Tooltip}from"./tooltip.min.js";export function Button(){return{view:function(t){let o=t.attrs.icon,n=t.attrs.href,s=t.attrs.caption,e=t.attrs.enabled,a=t.attrs.iconOnly,i=t.attrs.hasAlert,r=t.attrs.loading,l=t.attrs.class,p=t.attrs.tooltipPosition;"string"!=typeof o&&(o=""),"string"!=typeof n&&(n=""),"string"!=t... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/entry-list.js | internal/view/js/components/entry-list.js | import {
Button,
LoadingSign
} from "./_components.min.js";
import {
Big
} from "../libs/big.min.js"
import {
mergeObject,
} from "../libs/utils.min.js"
import {
i18n,
formatDate,
formatNumber
} from "../i18n/i18n.min.js"
export function EntryList() {
let lastSelectedRow = 0
function toggleAllSelection(se... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/account-list.js | internal/view/js/components/account-list.js | import {
Button,
LoadingSign
} from "./_components.min.js";
import {
Big
} from "../libs/big.min.js"
import {
mergeObject,
} from "../libs/utils.min.js"
import {
i18n,
formatNumber
} from "../i18n/i18n.min.js"
export function AccountList() {
let lastSelectedRow = 0
function toggleAllSelection(selection, nC... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/loading-sign.min.js | internal/view/js/components/loading-sign.min.js | export function LoadingSign(){return{view:function(n){return m("i.fas.fa-fw.fa-spin.fa-spinner",{class:n.attrs.class})}}} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/entry-list.min.js | internal/view/js/components/entry-list.min.js | import{Button,LoadingSign}from"./_components.min.js";import{Big}from"../libs/big.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n,formatDate,formatNumber}from"../i18n/i18n.min.js";export function EntryList(){let t=0;function e(e,n){let i=e.indexOf(n);-1!==i?e.splice(i,1):e.push(n),t=n}function n(e,n){l... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/account-chart.min.js | internal/view/js/components/account-chart.min.js | import{Button,LoadingSign}from"./_components.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function AccountChart(){let t={chart:null,nAccount:0,needToRefresh:!1};function e(e){if(0===t.nAccount)return"#DDD";return`hsl(${Math.round(360/t.nAccount)*e},100%,40%)`}functi... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/user-list.js | internal/view/js/components/user-list.js | import {
Button,
LoadingSign
} from "./_components.min.js";
import {
mergeObject,
} from "../libs/utils.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function UserList() {
let lastSelectedRow = 0
function toggleAllSelection(selection, nContents) {
if (selection.length === nContents) {
selecti... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/loading-cover.js | internal/view/js/components/loading-cover.js | export function LoadingCover() {
return {
view() { return m(".loading-cover") }
}
} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/_components.min.js | internal/view/js/components/_components.min.js | export{Button}from"./button.min.js";export{Dialog}from"./dialog.min.js";export{LoadingCover}from"./loading-cover.min.js";export{LoadingSign}from"./loading-sign.min.js";export{Tooltip}from"./tooltip.min.js";export{AccountList}from"./account-list.min.js";export{AccountChart}from"./account-chart.min.js";export{EntryList}f... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/tooltip.js | internal/view/js/components/tooltip.js | /*
Tooltip is a floating text that used to explain an interactive item (e.g. button).
It has several custom attributes :
- `text`, text for tooltip
- `position`, the position of tooltip relative to its parent
- `class`, custom class name.
let attrs = {
text: "Text",
position: "top|left|right|bottom",
class: "clas... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/tooltip.min.js | internal/view/js/components/tooltip.min.js | export function Tooltip(){return{view:function(t){let e=t.attrs.text;return"string"!=typeof e&&(e=""),m("span.tooltip",{class:t.attrs.class},e)},oncreate:function(t){let e=t.attrs.position;"string"!=typeof e&&(e="right");let i=t.dom,o=i.parentElement;o.addEventListener("mouseenter",()=>{i.classList.add("tooltip--visibl... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/dialog.min.js | internal/view/js/components/dialog.min.js | export function Dialog(){return{view:function(t){let s=t.attrs.title,e=t.attrs.message,a=t.attrs.class,o=t.attrs.contents,r=t.attrs.buttons;"string"!=typeof s&&(s=""),"string"!=typeof e&&(e=""),"string"!=typeof a&&(a=void 0),Array.isArray(r)||(r=[]);let i="dialog",l="dialog__overlay",_="dialog__header",d="dialog__foote... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/user-list.min.js | internal/view/js/components/user-list.min.js | import{Button,LoadingSign}from"./_components.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function UserList(){let e=0;function t(t,n){let s=t.indexOf(n);-1!==s?t.splice(s,1):t.push(n),e=n}function n(t,n){let s=e,i=n;s>i&&(s=n,i=e);for(var r=s;r<=i;r++)-1===t.indexOf... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/dialog.js | internal/view/js/components/dialog.js | export function Dialog() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
message = vnode.attrs.message,
customClass = vnode.attrs.class,
contents = vnode.attrs.contents,
buttons = vnode.attrs.buttons
if (typeof title != "string") title = ""
i... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/account-chart.js | internal/view/js/components/account-chart.js | import {
Button,
LoadingSign
} from "./_components.min.js";
import {
mergeObject,
} from "../libs/utils.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function AccountChart() {
let state = {
chart: null,
nAccount: 0,
needToRefresh: false
}
// Local methods
function getColor(idx) {
if (sta... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/loading-cover.min.js | internal/view/js/components/loading-cover.min.js | export function LoadingCover(){return{view:()=>m(".loading-cover")}} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/_components.js | internal/view/js/components/_components.js | export { Button } from "./button.min.js"
export { Dialog } from "./dialog.min.js"
export { LoadingCover } from "./loading-cover.min.js"
export { LoadingSign } from "./loading-sign.min.js"
export { Tooltip } from "./tooltip.min.js"
export { AccountList } from "./account-list.min.js"
export { AccountChart } from "./accou... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/account-list.min.js | internal/view/js/components/account-list.min.js | import{Button,LoadingSign}from"./_components.min.js";import{Big}from"../libs/big.min.js";import{mergeObject}from"../libs/utils.min.js";import{i18n,formatNumber}from"../i18n/i18n.min.js";export function AccountList(){let t=0;function n(n,e){let c=n.indexOf(e);-1!==c?n.splice(c,1):n.push(e),t=e}function e(n,e){let c=t,o=... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/components/loading-sign.js | internal/view/js/components/loading-sign.js | export function LoadingSign() {
function renderView(vnode) {
return m("i.fas.fa-fw.fa-spin.fa-spinner", {
class: vnode.attrs.class
})
}
return {
view: renderView
}
} | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/english.js | internal/view/js/i18n/english.js | export default new Map([
// Locale and month name
["locale", "en-US"],
["Jan"],
["Feb"],
["Mar"],
["Apr"],
["May"],
["Jun"],
["Jul"],
["Aug"],
["Sep"],
["Oct"],
["Nov"],
["Dec"],
["January"],
["February"],
["March"],
["April"],
["May"],
["June"],
["July"],
["August"],
["September"],
["October"],... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/i18n.js | internal/view/js/i18n/i18n.js | import English from "./english.min.js"
import Indonesia from "./indonesia.min.js"
// Local variable and methods
let activeDictionary
function activateDictionary() {
// If dictionary already active, stop
if (activeDictionary instanceof Map) return
// Load dictionary
let lang = localStorage.getItem("duit-language"... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/indonesia.min.js | internal/view/js/i18n/indonesia.min.js | export default new Map([["locale","id-ID"],["Jan","Jan"],["Feb","Feb"],["Mar","Mar"],["Apr","Apr"],["May","Mei"],["Jun","Jun"],["Jul","Jul"],["Aug","Agu"],["Sep","Sep"],["Oct","Okt"],["Nov","Nov"],["Dec","Dec"],["January","Januari"],["February","Februari"],["March","Maret"],["April","April"],["May","Mei"],["June","Juni... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/indonesia.js | internal/view/js/i18n/indonesia.js | export default new Map([
// Locale and month name
["locale", "id-ID"],
["Jan", "Jan"],
["Feb", "Feb"],
["Mar", "Mar"],
["Apr", "Apr"],
["May", "Mei"],
["Jun", "Jun"],
["Jul", "Jul"],
["Aug", "Agu"],
["Sep", "Sep"],
["Oct", "Okt"],
["Nov", "Nov"],
["Dec", "Dec"],
["January", "Januari"],
["February", "Feb... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/i18n.min.js | internal/view/js/i18n/i18n.min.js | import English from"./english.min.js";import Indonesia from"./indonesia.min.js";let activeDictionary;function activateDictionary(){if(activeDictionary instanceof Map)return;switch(localStorage.getItem("duit-language")){case"en":activeDictionary=English;break;case"id":activeDictionary=Indonesia;break;default:activeDicti... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/i18n/english.min.js | internal/view/js/i18n/english.min.js | export default new Map([["locale","en-US"],["Jan"],["Feb"],["Mar"],["Apr"],["May"],["Jun"],["Jul"],["Aug"],["Sep"],["Oct"],["Nov"],["Dec"],["January"],["February"],["March"],["April"],["May"],["June"],["July"],["August"],["September"],["October"],["November"],["December"],["Yes"],["No"],["OK"],["Cancel"],["Login"],["Re... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-user.min.js | internal/view/js/dialogs/form-user.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogFormUser(){return{view:function(e){let t=e.attrs.title,n=e.attrs.loading,o=e.attrs.defaultValue,r=e.attrs.onAccepted,i=e.attrs.onRejected;"string"!=typeof t&&(t=""),"boolean"!=typeof n&&(n=!1),"object"!=typeof o&&(o={}),"f... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-password.min.js | internal/view/js/dialogs/form-password.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogFormPassword(){return{view:function(e){let o=e.attrs.title,t=e.attrs.loading,r=e.attrs.onAccepted,n=e.attrs.onRejected;"string"!=typeof o&&(o=""),"boolean"!=typeof t&&(t=!1),"function"!=typeof r&&(r=()=>{}),"function"!=typ... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form.min.js | internal/view/js/dialogs/form.min.js | import{Button,Dialog}from"../components/_components.min.js";import{cloneObject}from"../libs/utils.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogForm(){let e={};return{view:function(t){let o=t.attrs.title,a=t.attrs.loading,l=t.attrs.message,n=t.attrs.fields,i=t.attrs.onRejected,r=t.attrs.onAccepted... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-account.min.js | internal/view/js/dialogs/form-account.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogFormAccount(){return{view:function(t){let e=t.attrs.title,n=t.attrs.loading,o=t.attrs.defaultValue,i=t.attrs.onAccepted,a=t.attrs.onRejected;"string"!=typeof e&&(e=""),"boolean"!=typeof n&&(n=!1),"object"!=typeof o&&(o={})... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/alert.js | internal/view/js/dialogs/alert.js | import {
Button,
Dialog
} from "../components/_components.min.js"
export function DialogAlert() {
function renderView(vnode) {
let title = vnode.attrs.title,
message = vnode.attrs.message,
btnText = vnode.attrs.btnText,
loading = vnode.attrs.loading,
onAccepted = vnode.attrs.onAccepted
if (typeof t... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/alert.min.js | internal/view/js/dialogs/alert.min.js | import{Button,Dialog}from"../components/_components.min.js";export function DialogAlert(){return{view:function(t){let o=t.attrs.title,n=t.attrs.message,e=t.attrs.btnText,i=t.attrs.loading,r=t.attrs.onAccepted;return"string"!=typeof o&&(o=""),"string"!=typeof n&&(n=""),"string"!=typeof e&&(e=""),"boolean"!=typeof i&&(i=... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form.js | internal/view/js/dialogs/form.js | import {
Button,
Dialog
} from "../components/_components.min.js"
import {
cloneObject
} from "../libs/utils.min.js"
import {
i18n,
} from "../i18n/i18n.min.js"
export function DialogForm() {
let formData = {}
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.t... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-account.js | internal/view/js/dialogs/form-account.js | import {
DialogForm
} from "./form.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function DialogFormAccount() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
loading = vnode.attrs.loading,
defaultValue = vnode.attrs.defaultValue,
onAc... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/language.js | internal/view/js/dialogs/language.js | import {
DialogForm
} from "./form.min.js"
import {
i18n,
} from "../i18n/i18n.min.js"
export function DialogLanguage() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
onAccepted = vnode.attrs.onAccepted,
onRejected = vnode.attrs.onRejected
if (t... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-entry.min.js | internal/view/js/dialogs/form-entry.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogFormEntry(){return{view:function(t){let e=t.attrs.title,n=t.attrs.loading,a=t.attrs.accounts,r=t.attrs.entryType,o=t.attrs.defaultValue,i=t.attrs.onAccepted,l=t.attrs.onRejected;"string"!=typeof e&&(e=""),"boolean"!=typeof... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/confirm.js | internal/view/js/dialogs/confirm.js | import {
Button,
Dialog
} from "../components/_components.min.js"
export function DialogConfirm() {
function renderView(vnode) {
let title = vnode.attrs.title,
message = vnode.attrs.message,
acceptText = vnode.attrs.acceptText,
rejectText = vnode.attrs.rejectText,
loading = vnode.attrs.loading,
onA... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-user.js | internal/view/js/dialogs/form-user.js | import {
DialogForm
} from "./form.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function DialogFormUser() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
loading = vnode.attrs.loading,
defaultValue = vnode.attrs.defaultValue,
onAccep... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/error.js | internal/view/js/dialogs/error.js | import {
Button,
Dialog
} from "../components/_components.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
import Cookies from '../libs/js-cookie.min.js'
export function DialogError() {
function renderView(vnode) {
let message = vnode.attrs.message,
loading = vnode.attrs.loading,
onAccepted = vnode.att... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/error.min.js | internal/view/js/dialogs/error.min.js | import{Button,Dialog}from"../components/_components.min.js";import{i18n}from"../i18n/i18n.min.js";import Cookies from"../libs/js-cookie.min.js";export function DialogError(){return{view:function(o){let t=o.attrs.message,n=o.attrs.loading,e=o.attrs.onAccepted;return"string"!=typeof t&&(t=""),"boolean"!=typeof n&&(n=!1),... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-entry.js | internal/view/js/dialogs/form-entry.js | import {
DialogForm
} from "./form.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function DialogFormEntry() {
function isoDateString(d) {
let date = String(d.getDate()).padStart(2, "0"),
month = String(d.getMonth() + 1).padStart(2, "0"),
year = d.getFullYear()
return `${year}-${month}-${date... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/entry-type.js | internal/view/js/dialogs/entry-type.js | import {
DialogForm
} from "./form.min.js"
import {
i18n,
} from "../i18n/i18n.min.js"
export function DialogEntryType() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
onAccepted = vnode.attrs.onAccepted,
onRejected = vnode.attrs.onRejected
if (... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/confirm.min.js | internal/view/js/dialogs/confirm.min.js | import{Button,Dialog}from"../components/_components.min.js";export function DialogConfirm(){return{view:function(t){let o=t.attrs.title,n=t.attrs.message,e=t.attrs.acceptText,i=t.attrs.rejectText,s=t.attrs.loading,a=t.attrs.onAccepted,c=t.attrs.onRejected;"string"!=typeof o&&(o=""),"string"!=typeof n&&(n=""),"string"!=... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/language.min.js | internal/view/js/dialogs/language.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogLanguage(){return{view:function(e){let t=e.attrs.title,n=e.attrs.onAccepted,i=e.attrs.onRejected;"string"!=typeof t&&(t=""),"function"!=typeof n&&(n=()=>{}),"function"!=typeof i&&(i=()=>{});let o=[{name:"language",type:"se... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/_dialogs.js | internal/view/js/dialogs/_dialogs.js | export { DialogAlert } from "./alert.min.js"
export { DialogError } from "./error.min.js"
export { DialogConfirm } from "./confirm.min.js"
export { DialogForm } from "./form.min.js"
export { DialogFormUser } from "./form-user.min.js"
export { DialogFormAccount } from "./form-account.min.js"
export { DialogFormEntry } f... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/_dialogs.min.js | internal/view/js/dialogs/_dialogs.min.js | export{DialogAlert}from"./alert.min.js";export{DialogError}from"./error.min.js";export{DialogConfirm}from"./confirm.min.js";export{DialogForm}from"./form.min.js";export{DialogFormUser}from"./form-user.min.js";export{DialogFormAccount}from"./form-account.min.js";export{DialogFormEntry}from"./form-entry.min.js";export{Di... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/form-password.js | internal/view/js/dialogs/form-password.js | import {
DialogForm
} from "./form.min.js"
import {
i18n
} from "../i18n/i18n.min.js"
export function DialogFormPassword() {
function renderView(vnode) {
// Parse attributes and set default value
let title = vnode.attrs.title,
loading = vnode.attrs.loading,
onAccepted = vnode.attrs.onAccepted,
onRejec... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/dialogs/entry-type.min.js | internal/view/js/dialogs/entry-type.min.js | import{DialogForm}from"./form.min.js";import{i18n}from"../i18n/i18n.min.js";export function DialogEntryType(){return{view:function(e){let t=e.attrs.title,n=e.attrs.onAccepted,i=e.attrs.onRejected;"string"!=typeof t&&(t=""),"function"!=typeof n&&(n=()=>{}),"function"!=typeof i&&(i=()=>{});let o=[{name:"type",type:"selec... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/mithril.min.js | internal/view/js/libs/mithril.min.js | !function(){"use strict";function e(e,t,n,r,o,l){return{tag:e,key:t,attrs:n,children:r,text:o,dom:l,domSize:void 0,state:void 0,events:void 0,instance:void 0}}e.normalize=function(t){return Array.isArray(t)?e("[",void 0,void 0,e.normalizeChildren(t),void 0,void 0):null==t||"boolean"==typeof t?null:"object"==typeof t?t:... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/chartist.js | internal/view/js/libs/chartist.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module unless amdModuleId is set
define('Chartist', [], function () {
return (root['Chartist'] = factory());
});
} else if (typeof module === 'object' && module.exports) {
// Node. Do... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | true |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/chartist-plugin-pointlabels.js | internal/view/js/libs/chartist-plugin-pointlabels.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(["chartist"], function (Chartist) {
return (root.returnExportsGlobal = factory(Chartist));
});
} else if (typeof exports === 'object') {
// Node. Does not work with str... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/big.js | internal/view/js/libs/big.js | /*
* big.js v5.2.2
* A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
* Copyright (c) 2018 Michael Mclaughlin <M8ch88l@gmail.com>
* https://github.com/MikeMcl/big.js/LICENCE
*/
/************************************** EDITABLE DEFAULTS *****************************************/
... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/utils.min.js | internal/view/js/libs/utils.min.js | export function timeout(e,t){let r=e;if("string"==typeof e){let t=e.replace(/^\d+/,"");switch(r=parseInt(e,10),t){case"s":r*=1e3;break;case"M":r*=6e4;break;case"H":r*=36e5;break;default:r=0}}return 0===r?t:new Promise((n,o)=>{setTimeout(()=>o(new Error(`Timeout after ${e}`)),r),t.then(n,o)})}export async function reque... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/chartist-plugin-pointlabels.min.js | internal/view/js/libs/chartist-plugin-pointlabels.min.js | /* chartist-plugin-pointlabels 0.0.6
* Copyright © 2018 Gion Kunz
* Free to use under the WTFPL license.
* http://www.wtfpl.net/
*/
!function(a,b){"function"==typeof define&&define.amd?define(["chartist"],function(c){return a.returnExportsGlobal=b(c)}):"object"==typeof exports?module.exports=b(require("chartist"))... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/mithril.js | internal/view/js/libs/mithril.js | ;(function() {
"use strict"
function Vnode(tag, key, attrs0, children0, text, dom) {
return {tag: tag, key: key, attrs: attrs0, children: children0, text: text, dom: dom, domSize: undefined, state: undefined, events: undefined, instance: undefined}
}
Vnode.normalize = function(node) {
if (Array.isArray(node)) return ... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | true |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/big.min.js | internal/view/js/libs/big.min.js | var DP=20,RM=1,MAX_DP=1e6,MAX_POWER=1e6,NE=-7,PE=21,NAME="[big.js] ",INVALID=NAME+"Invalid ",INVALID_DP=INVALID+"decimal places",INVALID_RM=INVALID+"rounding mode",DIV_BY_ZERO=NAME+"Division by zero",P={},UNDEFINED=void 0,NUMERIC=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function _Big_(){function r(e){var t=this;if(!(t in... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/js-cookie.js | internal/view/js/libs/js-cookie.js | /*! js-cookie v3.0.0-beta.3 | MIT */
var rfc6265Converter = {
read: function (value) {
return value.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
},
write: function (value) {
return encodeURIComponent(value).replace(
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
decodeURIComponent
)
}
};... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/chartist.min.js | internal/view/js/libs/chartist.min.js | /* Chartist.js 0.11.4
* Copyright © 2019 Gion Kunz
* Free to use under either the WTFPL license or the MIT license.
* https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL
* https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT
*/
!function(a,b){"function"==typeof define&... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | true |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/js-cookie.min.js | internal/view/js/libs/js-cookie.min.js | /*! js-cookie v3.0.0-beta.3 | MIT */
var e={read:function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in ... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
RadhiFadlillah/duit | https://github.com/RadhiFadlillah/duit/blob/fbe59030f7cd675d999a6788f7eda5c08867b50b/internal/view/js/libs/utils.js | internal/view/js/libs/utils.js | export function timeout(duration, promise) {
let ms = duration
if (typeof duration == "string") {
let unitName = duration.replace(/^\d+/, "")
ms = parseInt(duration, 10)
switch (unitName) {
case "s":
ms *= 1000
break
case "M":
ms *= 60 * 1000
break
case "H":
ms *= 60 * 60 * 1000
... | javascript | MIT | fbe59030f7cd675d999a6788f7eda5c08867b50b | 2026-01-05T03:44:59.757299Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/webpack.config.js | webpack.config.js | const path = require('node:path');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = (_, argv) => {
return {
entry: './index.ts',
output: {
path: path.resolve(__dirname, 'dist'),
filename: `hls-parser${argv.mode === 'production' ? '.min' : ''}.js`,
library: 'HLS',
... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/helpers/fixtures.js | test/helpers/fixtures.js | const path = require('node:path');
const fs = require('node:fs');
const fixtures = [];
const baseDir = path.join(__dirname, '../fixtures/m3u8');
const filenames = fs.readdirSync(baseDir);
for (const filename of filenames) {
if (filename.endsWith('.m3u8')) {
const name = path.basename(filename, '.m3u8');
con... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/helpers/utils.js | test/helpers/utils.js | const HLS = require('../..');
HLS.setOptions({strictMode: true});
function parsePass(t, text) {
let obj;
try {
obj = HLS.parse(text);
} catch (err) {
t.fail(err.stack);
}
t.truthy(obj);
return obj;
}
function stringifyPass(t, obj) {
let text;
try {
text = HLS.stringify(obj);
} catch (er... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/helpers/matchers.js | test/helpers/matchers.js | function removeSpaceFromLine(line) {
let inside = false;
let str = '';
for (const ch of line) {
if (ch === '"') {
inside = !inside;
} else if (!inside && ch === ' ') {
continue;
}
str += ch;
}
return str;
}
function strip(playlist) {
playlist = playlist.trim();
const filtered ... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.1-Simple-Media-Playlist.js | test/fixtures/objects/8.1-Simple-Media-Playlist.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
version: 3,
targetDuration: 10,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: 'http://media.example.com/first.ts',
dura... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.9-CHARACTERISTICS-attribute-containing-multiple-characteristics.js | test/fixtures/objects/8.9-CHARACTERISTICS-attribute-containing-multiple-characteristics.js | const {MasterPlaylist, Variant, Rendition} = require('../../../types');
const renditions = createRendition();
function createRendition() {
const renditions = [];
renditions.push(new Rendition({
type: 'AUDIO',
uri: 'main/english-audio.m3u8',
groupId: 'aac',
language: 'en',
name: 'English',
... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_07.js | test/fixtures/objects/SCTE-35_07.js | const {MediaPlaylist, Segment, DateRange} = require('../../../types');
const utils = require('../../../utils');
const playlist = new MediaPlaylist({
version: 3,
targetDuration: 30,
segments: createSegments()
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: 'http://me... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_05.js | test/fixtures/objects/SCTE-35_05.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.2-Live-Media-Playlist_using-HTTPS.js | test/fixtures/objects/8.2-Live-Media-Playlist_using-HTTPS.js | const {MediaPlaylist, Segment} = require('../../../types');
const mediaSequenceBase = 2680;
const playlist = new MediaPlaylist({
version: 3,
targetDuration: 8,
mediaSequenceBase,
segments: createSegments()
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: 'https://... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/Streaming-Examples_bipbop_16x9_variant.js | test/fixtures/objects/Streaming-Examples_bipbop_16x9_variant.js | const {MasterPlaylist, Variant, Rendition} = require('../../../types');
const renditions = {
bipbop_audio: [
new Rendition({
type: 'AUDIO',
groupId: 'bipbop_audio',
language: 'eng',
name: 'BipBop Audio 1',
autoselect: true,
isDefault: true
}),
new Rendition({
typ... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.10-EXT-X-DATERANGE-carrying-SCTE-35-tags.js | test/fixtures/objects/8.10-EXT-X-DATERANGE-carrying-SCTE-35-tags.js | const {MediaPlaylist, Segment, DateRange} = require('../../../types');
const utils = require('../../../utils');
const playlist = new MediaPlaylist({
version: 3,
targetDuration: 30,
segments: createSegments()
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: 'http://me... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.7-Master-Playlist-with-Alternative-video.js | test/fixtures/objects/8.7-Master-Playlist-with-Alternative-video.js | const {MasterPlaylist, Variant, Rendition} = require('../../../types');
function createRendition(groupId) {
const renditions = [];
renditions.push(new Rendition({
type: 'VIDEO',
uri: `${groupId}/main/audio-video.m3u8`,
groupId,
name: 'Main',
isDefault: !(groupId === 'mid')
}));
renditions.p... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.11-EXT-X-CUE-OUT-Media-Playlist.js | test/fixtures/objects/8.11-EXT-X-CUE-OUT-Media-Playlist.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
version: 3,
targetDuration: 10,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: 'http://media.example.com/first.ts',
dura... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_03.js | test/fixtures/objects/SCTE-35_03.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.3-Playlist-with-encrypted-Media-Segments.js | test/fixtures/objects/8.3-Playlist-with-encrypted-Media-Segments.js | const {MediaPlaylist, Segment, Key} = require('../../../types');
const mediaSequenceBase = 7794;
const key1 = new Key({method: 'AES-128', uri: 'https://priv.example.com/key.php?r=52'});
const key2 = new Key({method: 'AES-128', uri: 'https://priv.example.com/key.php?r=53'});
const playlist = new MediaPlaylist({
ver... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.8-Session-Data-in-a-Master-Playlist.js | test/fixtures/objects/8.8-Session-Data-in-a-Master-Playlist.js | const {MasterPlaylist, SessionData} = require('../../../types');
const playlist = new MasterPlaylist({
sessionDataList: createSetssionDataList()
});
function createSetssionDataList() {
const setssionDataList = [];
setssionDataList.push(new SessionData({
id: 'com.example.lyrics',
uri: 'lyrics.json'
}))... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_06.js | test/fixtures/objects/SCTE-35_06.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_04.js | test/fixtures/objects/SCTE-35_04.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/Low-Latency_Example-02_Playlist_Delta_Update.js | test/fixtures/objects/Low-Latency_Example-02_Playlist_Delta_Update.js | const {MediaPlaylist, Segment, PartialSegment, RenditionReport} = require('../../../types');
const playlist = new MediaPlaylist({
version: 9,
targetDuration: 4,
mediaSequenceBase: 266,
lowLatencyCompatibility: {canBlockReload: true, canSkipUntil: 24.0, partHoldBack: 1.0},
partTargetDuration: 0.33334,
skip:... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/8.4-Master-Playlist.js | test/fixtures/objects/8.4-Master-Playlist.js | const {MasterPlaylist, Variant} = require('../../../types');
const playlist = new MasterPlaylist({
variants: createVariants()
});
function createVariants() {
const variants = [];
variants.push(new Variant({
uri: 'http://example.com/low.m3u8',
bandwidth: 1280000,
averageBandwidth: 1000000,
codecs... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/Low-Latency_Example-01_Low-Latency_HLS_Playlist.js | test/fixtures/objects/Low-Latency_Example-01_Low-Latency_HLS_Playlist.js | const {MediaPlaylist, Segment, PartialSegment, MediaInitializationSection, RenditionReport} = require('../../../types');
const playlist = new MediaPlaylist({
version: 6,
targetDuration: 4,
mediaSequenceBase: 266,
lowLatencyCompatibility: {canBlockReload: true, canSkipUntil: 24, partHoldBack: 1},
partTargetDu... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_01.js | test/fixtures/objects/SCTE-35_01.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/SCTE-35_02.js | test/fixtures/objects/SCTE-35_02.js | const {MediaPlaylist, Segment} = require('../../../types');
const playlist = new MediaPlaylist({
playlistType: 'VOD',
version: 3,
targetDuration: 8,
segments: createSegments(),
endlist: true
});
function createSegments() {
const segments = [];
segments.push(new Segment({
uri: '1.ts',
duration: 8... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/Low-Latency_Example-03_Byterange-addressed_Parts-02.js | test/fixtures/objects/Low-Latency_Example-03_Byterange-addressed_Parts-02.js | const {MediaPlaylist, Segment, PartialSegment} = require('../../../types');
const playlist = new MediaPlaylist({
version: 9,
targetDuration: 4,
mediaSequenceBase: 266,
lowLatencyCompatibility: {canBlockReload: true, canSkipUntil: 24.0, partHoldBack: 1.02},
partTargetDuration: 1.02,
skip: 3,
segments: cre... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
kuu/hls-parser | https://github.com/kuu/hls-parser/blob/15bc1f8155dcc0adc5d202024f4b7a133232edf6/test/fixtures/objects/Streaming-Examples_img_bipbop_adv_example_ts_master.js | test/fixtures/objects/Streaming-Examples_img_bipbop_adv_example_ts_master.js | const {MasterPlaylist, Variant, Rendition} = require('../../../types');
const renditions = {
aud1: [
new Rendition({
type: 'AUDIO',
uri: 'a1/prog_index.m3u8',
groupId: 'aud1',
language: 'en',
name: 'English',
autoselect: true,
isDefault: true,
channels: '2'
})
... | javascript | MIT | 15bc1f8155dcc0adc5d202024f4b7a133232edf6 | 2026-01-05T03:45:29.662946Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.