diff --git a/app/App.svelte b/app/App.svelte index a586fc2..f90afcd 100644 --- a/app/App.svelte +++ b/app/App.svelte @@ -95,16 +95,23 @@ function setRoute(r, initialState) { }; } +(async () => { page("/", setRoute(Home, true)); page("/login", setRoute(Login, true)); page("/register", setRoute(Register)); page("/admin", setRoute(AdminPanel)); page("/profile", setRoute(Profile, true)); page("/user/:id", setRoute(Profile, true)); +if (process.env.NODE_ENV !== 'production') { + console.log("Development mode active"); + const cc = await import('./views/components.svelte'); + page("/components", setRoute(cc.default, true)); +} //page("/users", setRoute(UserList)); //page("/characters", setRoute(CharacterList)); //page("/recovery", setRoute(Recovery)); page("*", setRoute(BadRoute)); +})(); {#if currentCtx} diff --git a/app/views/components.svelte b/app/views/components.svelte new file mode 100644 index 0000000..4b13056 --- /dev/null +++ b/app/views/components.svelte @@ -0,0 +1,1444 @@ + + + +
+
+
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ + + +
+ + +
+
+ +

+ + + + + + + +

+ +

+ + + + + + + +

+ +

+ + + + + + +

+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+ + + +
+ +
+
+ +

+ +

+ +
+
+ + + +
+
+ +
+
+ + + +
+
+ +
+
+ + + + + + +
+
+ +
+
+ + + +
+
+ +
+ +
+ +
+
+
+ + +
+
+
+ +
+
+ + + +
+
+
+

Heading 1

+

Heading 2

+

Heading 3

+

Heading 4

+
Heading 5
+
Heading 6
+

+ Heading + with muted text +

+

Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.

+
+
+
+
+

Example body text

+

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

+

This line of text is meant to be treated as fine print.

+

The following is rendered as bold text.

+

The following is rendered as italicized text.

+

An abbreviation of the word attribute is attr.

+
+ +
+
+
+

Emphasis classes

+

Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.

+

Nullam id dolor id nibh ultricies vehicula ut id elit.

+

Pellentesque ornare sem lacinia quam venenatis vestibulum.

+

Etiam porta sem malesuada magna mollis euismod.

+

Donec ullamcorper nulla non metus auctor fringilla.

+

Duis mollis, est non commodo luctus, nisi erat porttitor ligula.

+

Maecenas sed diam eget risus varius blandit sit amet non magna.

+
+ +
+
+ + + +
+
+

Blockquotes

+
+
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+
+
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+
Someone famous in Source Title
+
+
+
+
+
+
+

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

+ +
+
+
+
+
+ + +
+ +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TypeColumn headingColumn headingColumn heading
ActiveColumn contentColumn contentColumn content
DefaultColumn contentColumn contentColumn content
PrimaryColumn contentColumn contentColumn content
SecondaryColumn contentColumn contentColumn content
SuccessColumn contentColumn contentColumn content
DangerColumn contentColumn contentColumn content
WarningColumn contentColumn contentColumn content
InfoColumn contentColumn contentColumn content
LightColumn contentColumn contentColumn content
DarkColumn contentColumn contentColumn content
+
+
+
+
+ + +
+
+
+ +
+
+ +
+
+
+
+
+ Legend +
+ +
+ +
+
+
+ + + We'll never share your email with anyone else. +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + This is some placeholder block-level help text for the above input. It's a bit lighter and easily wraps to a new line. +
+
+ Radio buttons +
+ +
+
+ +
+
+ +
+
+
+ Checkboxes +
+ +
+
+ +
+
+
+ Sliders + + +
+ +
+
+
+
+
+ +
+
+
+ + +
+
+ +
+
+ + +
+
+ +
+ + +
Success! You've done it.
+
+ +
+ + +
Sorry, that username's taken. Try another?
+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
+
+ $ +
+ +
+ .00 +
+
+
+
+
+ +
+
+ Custom forms +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+
+ + +
+
+ + +
+
+
+ +
+
+
+
+ + +
+
+ Upload +
+
+
+
+
+ +
+
+
+ + +
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+

Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.

+
+
+

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit.

+
+ + +
+
+
+ +
+ +
+ +
+
+
+ +
+
+
+ +
+
+ +
+ + + +
+
+ +
+

Pagination

+
+
+
    +
  • + « +
  • +
  • + 1 +
  • +
  • + 2 +
  • +
  • + 3 +
  • +
  • + 4 +
  • +
  • + 5 +
  • +
  • + » +
  • +
+
+ +
+
    +
  • + « +
  • +
  • + 1 +
  • +
  • + 2 +
  • +
  • + 3 +
  • +
  • + 4 +
  • +
  • + 5 +
  • +
  • + » +
  • +
+
+ +
+
    +
  • + « +
  • +
  • + 1 +
  • +
  • + 2 +
  • +
  • + 3 +
  • +
  • + 4 +
  • +
  • + 5 +
  • +
  • + » +
  • +
+
+ +
+
+
+
+ + +
+ +
+
+ +
+
+ +
+
+

Alerts

+
+
+ +

Warning!

+

Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

+
+
+
+
+
+
+
+
+ + Oh snap! Change a few things up and try submitting again. +
+
+
+
+
+
+ + Well done! You successfully read this important alert message. +
+
+
+
+
+
+ + Heads up! This alert needs your attention, but it's not super important. +
+
+
+
+
+
+
+
+ + Oh snap! Change a few things up and try submitting again. +
+
+
+
+
+
+ + Well done! You successfully read this important alert message. +
+
+
+
+
+
+ + Heads up! This alert needs your attention, but it's not super important. +
+
+
+
+
+

Badges

+
+ Primary + Secondary + Success + Danger + Warning + Info + Light + Dark +
+
+ Primary + Secondary + Success + Danger + Warning + Info + Light + Dark +
+
+
+ + +
+ +
+
+ + +

Basic

+
+
+
+
+
+ +

Contextual alternatives

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +

Multiple bars

+
+
+
+
+
+
+
+ +

Striped

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +

Animated

+
+
+
+
+
+
+
+
+ + +
+ +
+
+ +
+
+

Hello, world!

+

This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

+
+

It uses utility classes for typography and spacing to space content out within the larger container.

+

+ Learn more +

+
+
+
+
+ + +
+
+

List groups

+
+
+ +
+
+
+
    +
  • + Cras justo odio + 14 +
  • +
  • + Dapibus ac facilisis in + 2 +
  • +
  • + Morbi leo risus + 1 +
  • +
+
+
+ + +
+ +
+
+

Cards

+
+
+ +
+
+
+
+
Header
+
+

Primary card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Secondary card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Success card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Danger card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Warning card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Info card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Light card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Dark card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
+
+
+
+
Header
+
+

Primary card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Secondary card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Success card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Danger card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Warning card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Info card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Light card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
Header
+
+

Dark card title

+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
+
+
+ +
+
+
+

Card header

+
+
Special title treatment
+
Support card subtitle
+
+ Card image +
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+
+
    +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Vestibulum at eros
  • +
+ + +
+
+
+

Card title

+
Card subtitle
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Card link + Another link +
+
+
+
+
+ +
+ + +
+ +
+
+ +
+
+
+
+

Modals

+
+ +
+
+
+

Popovers

+
+ + + + + + + +
+

Tooltips

+
+ + + + + + + +
+

Toasts

+
+ +
+
+
+
+ + + + + +