forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate to Bootstrap 5, improve notifications, add supporter confetti (…
- Loading branch information
Showing
39 changed files
with
2,369 additions
and
2,009 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
stories: ["../assets/js/**/*.stories.mdx", "../assets/js/**/*.stories.@(js|jsx|ts|tsx)"], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-postcss"], | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
<link href="/css/bootstrap.min.css" rel="stylesheet" /> | ||
<script src="/js/bootstrap.min.js"></script> | ||
|
||
<link href="/css/app.css" rel="stylesheet" /> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,5 @@ | |
</script> | ||
|
||
<div id="app"></div> | ||
<div id="toasts"></div> | ||
</body> | ||
</html> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,25 @@ | ||
<template> | ||
<footer class="py-3 py-md-5 mt-3 mt-md-5 border-top"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-6"> | ||
<Version v-bind="version" /> | ||
</div> | ||
<div class="col-6 text-right"> | ||
<small class="text-black"> | ||
<a href="https://github.com/sponsors/andig" target="_blank" class="link"> | ||
<fa-icon icon="heart" class="icon mr-1"></fa-icon | ||
><span class="d-none d-sm-inline">Projekt </span>unterstützen | ||
</a> | ||
</small> | ||
</div> | ||
<footer class="container"> | ||
<div class="py-3 py-md-5 mt-3 mt-md-5 border-top"> | ||
<div class="d-flex justify-content-between"> | ||
<Version v-bind="version" /> | ||
<!-- Please don't mess with the sponsor status. You risk loosing your mojo. --> | ||
<Sponsor :sponsor="sponsor" /> | ||
</div> | ||
</div> | ||
</footer> | ||
</template> | ||
|
||
<script> | ||
import Version from "./Version"; | ||
import Sponsor from "./Sponsor"; | ||
export default { | ||
name: "Footer", | ||
components: { Version }, | ||
components: { Version, Sponsor }, | ||
props: { | ||
version: Object, | ||
sponsor: String, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.icon { | ||
color: #0fdd42; | ||
} | ||
.text-black a { | ||
color: #18191a; | ||
} | ||
</style> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Notifications from "./Notifications.vue"; | ||
|
||
export default { | ||
title: "Main/Notifications", | ||
component: Notifications, | ||
argTypes: {}, | ||
}; | ||
|
||
const Template = (args, { argTypes }) => ({ | ||
props: Object.keys(argTypes), | ||
components: { Notifications }, | ||
template: '<Notifications v-bind="$props"></Notifications>', | ||
}); | ||
|
||
export const Base = Template.bind({}); | ||
Base.args = { | ||
notifications: [ | ||
{ | ||
message: "Server unavailable", | ||
type: "error", | ||
}, | ||
{ | ||
message: "charger out of sync: expected disabled, got enabled", | ||
type: "warn", | ||
}, | ||
{ | ||
message: | ||
"Amet irure quis incididunt voluptate esse. Commodo ea sunt est ipsum tempor nisi laboris voluptate labore elit laborum. Ex irure commodo reprehenderit consequat consequat do ad tempor aliquip deserunt eu. Laboris minim nostrud quis nisi. Dolor occaecat reprehenderit velit dolore exercitation cupidatat et voluptate. Nulla pariatur deserunt esse minim nisi nisi nulla. Sit eiusmod do incididunt sint minim pariatur aute.", | ||
type: "warn", | ||
}, | ||
], | ||
}; |
Oops, something went wrong.