Skip to content

Commit 68b855e

Browse files
authored
Merge pull request #10 from hovancik/0.0.7
Small enhancements and dep upgrades
2 parents 5d15ee2 + 6767bcf commit 68b855e

File tree

9 files changed

+206
-178
lines changed

9 files changed

+206
-178
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Use Node.js
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '18'
18+
node-version: '20.11.0'
1919
- run: npm install npm -g
2020
- run: npm install
2121
- run: npx nyc --reporter=lcov npm test

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.11.0

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.0.7] - 2024-04-01
10+
## Added
11+
- minor UI enhancements
12+
913
## [0.0.6] - 2023-02-03
1014
## Added
1115
- ability to skip to a break
@@ -38,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3842
- simple Preferences (intervals and durations for Mini and Long breaks)
3943
- debug information
4044

41-
[Unreleased]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.6...HEAD
45+
[Unreleased]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.7...HEAD
46+
[0.0.7]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.6...v0.0.7
4247
[0.0.6]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.5...v0.0.6
4348
[0.0.5]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.4...v0.0.5
4449
[0.0.4]: https://github.com/hovancik/stretchly-for-web/compare/v0.0.3...v0.0.4

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Stretchly for Web</title>
88
</head>
99
<body>
10-
<div id="app"></div>
10+
<div id="app" data-theme="light"></div>
1111
<script type="module" src="/src/main.js"></script>
1212
</body>
1313
</html>

package-lock.json

Lines changed: 170 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "stretchly-for-web",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "The break time reminder app",
55
"engines": {
6-
"node": "18.x"
6+
"node": "20.11.0"
77
},
88
"type": "module",
99
"repository": {
@@ -32,8 +32,8 @@
3232
},
3333
"devDependencies": {
3434
"@sveltejs/vite-plugin-svelte": "^2.0.2",
35-
"bulma": "^0.9.4",
36-
"carbon-icons-svelte": "^11.2.0",
35+
"bulma": "^1.0.0",
36+
"carbon-icons-svelte": "^12.6.0",
3737
"chai": "^4.3.6",
3838
"chai-as-promised": "^7.1.1",
3939
"easytimer.js": "^4.5.4",

src/App.svelte

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
{#if status === 'stopped' || status === 'paused'}
166166
<button class="button is-small" on:click={start}>
167167
<span class="icon is-small">
168-
<Play size="16" />
168+
<Play size={16} />
169169
</span>
170170
{#if status === 'stopped'}
171171
<span>Start</span>
@@ -176,21 +176,21 @@
176176
{:else if status === 'running'}
177177
<button class="button is-small" on:click={pause}>
178178
<span class="icon is-small">
179-
<Pause size="16" />
179+
<Pause size={16} />
180180
</span>
181181
<span>Pause</span>
182182
</button>
183183
<button class="button is-small" on:click={stop}>
184184
<span class="icon is-small">
185-
<Stop size="16" />
185+
<Stop size={16} />
186186
</span>
187187
<span>Stop</span>
188188
</button>
189189
<div class="dropdown is-hoverable">
190190
<div class="dropdown-trigger">
191191
<button class="button is-small" aria-haspopup="true" aria-controls="dropdown-menu">
192192
<span class="icon is-small">
193-
<SkipForward size="16" />
193+
<SkipForward size={16} />
194194
</span>
195195
<span>Skip to</span>
196196
</button>
@@ -215,7 +215,7 @@
215215
<div class="container has-text-centered">
216216
{#if status !== 'running'}
217217
<div>
218-
<h1 class="title">
218+
<h1 class="title has-text-white">
219219
Stretchly for Web
220220
</h1>
221221
<span class="tag {heroClass} is-light">
@@ -224,7 +224,7 @@
224224
</div>
225225
{:else if current === 'work'}
226226
<div>
227-
<h1 class="title">
227+
<h1 class="title has-text-white">
228228
Time to work!
229229
</h1>
230230
{#if finishedMinis === $longBreakInterval}
@@ -241,15 +241,15 @@
241241
<div>
242242
{#if finishedMinis === $longBreakInterval}
243243
<div class="block">
244-
<h1 class="title">
244+
<h1 class="title has-text-white">
245245
{longBreakIdea[0]}
246246
</h1>
247-
<h2 class="subtitle">
247+
<h2 class="subtitle has-text-white">
248248
{longBreakIdea[1]}
249249
</h2>
250250
</div>
251251
{:else}
252-
<h1 class="title"e>
252+
<h1 class="title has-text-white">
253253
{miniBreakIdea}
254254
</h1>
255255
{/if}
@@ -262,10 +262,10 @@
262262
</div>
263263
<div class="hero-foot">
264264
<div class="container content has-text-right">
265-
<p>
266-
<strong>Stretchly for Web</strong> v0.0.6 |
267-
<a href="#preferences" class="is-underlined">Preferences</a> |
268-
Made with ♥ by <a href="https://hovancik.net" class="is-underlined">Jan Hovancik</a>
265+
<p class="has-text-white">
266+
<strong>Stretchly for Web</strong> <a href="https://github.com/hovancik/stretchly-for-web" class="is-underlined has-text-white">v0.0.7</a> |
267+
<a href="#preferences" class="is-underlined has-text-white">Preferences</a> |
268+
Made with ♥ by <a href="https://hovancik.net" class="is-underlined has-text-white">Jan Hovancik</a>
269269
</p>
270270
</div>
271271
</div>
@@ -276,7 +276,11 @@
276276
<h1 class="title" id="preferences">
277277
Preferences
278278
</h1>
279-
<p>Stop the breaks before editing preferences.
279+
{#if status === 'stopped'}
280+
<p>Here you can edit preferences.</p>
281+
{:else}
282+
<p>Stop the breaks before editing preferences.</p>
283+
{/if}
280284
<h2 class="subtitle">Mini Breaks</h2>
281285
<p>Mini Breaks are short breaks taken regularly to give you a chance to stretch and relax.</p>
282286
<div class="field is-horizontal">

src/app.scss

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
/* Write your global styles here, in SCSS syntax. Variables and mixins from the src/variables.scss file are available here without importing */ /* Import only what you need from Bulma */
2-
@import "bulma/sass/utilities/_all";
3-
@import "bulma/sass/base/_all";
4-
@import "bulma/sass/elements/_all";
5-
@import "bulma/sass/form/_all";
6-
@import "bulma/sass/components/_all";
7-
@import "bulma/sass/grid/_all";
8-
@import "bulma/sass/helpers/_all";
9-
@import "bulma/sass/layout/_all";
2+
@import 'bulma/css/bulma.css'

src/components/NotificationRequest.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
{#if !loaded }
2323
<!--Still loading-->
2424
{:else if !browserSupportsNotifications}
25-
<div class="notification mt-2 is-warning is-light">
26-
<p class="">This browser does not support notifications.</p>
25+
<div class="notification mt-2 is-danger is-light">
26+
This browser does not support notifications.
2727
</div>
2828
{:else if !notificationsAreAllowed }
2929
<div class="notification mt-2 is-warning is-light">
30+
Notifications are not allowed. Please request the permission by clicking on button.
3031
<button class="button is-success is-outlined is-small is-pulled-right" on:click={requestPermission}>
3132
<span class="icon is-small">
32-
<NotificationIcon size="16"/>
33+
<NotificationIcon size={16}/>
3334
</span>
3435
<span>Request Notifications Permission</span>
3536
</button>
36-
<p>Notifications are not allowed. Please request the permission by clicking on button.</p>
3737
</div>
3838
{/if}
3939
</section>

0 commit comments

Comments
 (0)