This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # locale json files | |
| /assets/locales/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0)); | |
| const options = { | |
| timeZone: 'America/Los_Angeles', | |
| timeStyle: 'long' | |
| }; | |
| console.log(new Intl.DateTimeFormat('ko-KR', options).format(date)); | |
| // 오후 7시 0분 0초 GMT-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| output: { | |
| library: ['tui', 'Calendar'], // Configuring the library namespace | |
| libraryTarget: 'umd', // Configuring the library target | |
| libraryExport: 'default', // Configuring the default export of the entry point to the namespace | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "scripts": { | |
| "doc": "tuidoc" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new (class extends v { | |
| getComponent() { | |
| return Object(o.h)("h2", null, "Week View"); | |
| } | |
| })(document.getElementById("app1")).render(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Month, Week } from "esm-ui-library"; | |
| const week = new Week(document.getElementById("app1")); | |
| week.render(); | |
| // const month = new Month(document.getElementById("app2")); | |
| // month.render(); | |
| // document.getElementById("ssr").innerHTML = month.renderToString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new (class extends v { | |
| getComponent() { | |
| return Object(o.h)("h2", null, "Week View"); | |
| } | |
| })(document.getElementById("app1")).render(); | |
| const m = new (class extends v { | |
| getComponent() { | |
| return Object(o.h)("h2", null, "Month View"); | |
| } | |
| })(document.getElementById("app2")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Month, Week } from "esm-ui-library"; | |
| const week = new Week(document.getElementById("app1")); | |
| week.render(); | |
| const month = new Month(document.getElementById("app2")); | |
| month.render(); | |
| document.getElementById("ssr").innerHTML = month.renderToString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { h } from 'preact'; | |
| import Base from '@src/base'; | |
| export default class Week extends Base { | |
| protected getComponent(): JSX.Element { | |
| return <h2>Week View</h2>; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { h } from 'preact'; | |
| import Base from '@src/base'; | |
| export default class Month extends Base { | |
| protected getComponent(): JSX.Element { | |
| return <h2>Month View</h2>; | |
| } | |
| } |
NewerOlder