vue.js动态计时器_基于Vue.js的Pomodoro技术计时器

这是一个基于Vue.js 2.0和PWA的Pomodoro计时器,结合Bootstrap 4。特性包括25分钟番茄工作间隔,5分钟和20分钟休息间隔,响应式设计,以及声音和自动启动间隔切换。还提供了查询字符串配置和使用提示。
摘要由CSDN通过智能技术生成

vue.js动态计时器

番茄 (pomodoro)

Timer for Pomodoro Technique built on Vue.js 2.0 with PWA

基于PWA的Vue.js 2.0构建的Pomodoro技术计时器

Built using Vue.js 2.0 with PWA (Progressive Web Apps) and Bootstrap 4.

使用带有PWA(渐进式Web应用程序)和Bootstrap 4的Vue.js 2.0构建。

使用的技术/模块 (Technologies/Modules used)

  • Vue.js 2.0

    Vue.js 2.0

  • Vue Router

    Vue路由器

  • Vuex

    威克斯

  • Bootstrap 4 Beta 2 (css only)

    Bootstrap 4 Beta 2(仅限CSS)

  • Bootstrap Vue

    Bootstrap Vue

特征 (Features)

  • 25 minutes Pomodoro interval

    25分钟番茄时间间隔

  • 5 minutes Short Break interval

    5分钟短暂休息时间

  • 20 minutes Long Break interval

    20分钟长休息间隔

  • Different timer text color during break time

    休息时间不同的计时器文字颜色

  • Toggle Sound

    切换声音

  • Toggle Autostart Next Interval

    切换下一个间隔自动启动

  • Intervals completed log

    间隔完成日志

  • Responsive

    React灵敏

查询字符串配置 (Query string configurations)

FunctionParameterDefaultSetting
Whether to start next interval when the current one is completedautonextoffon/off
Start timer immediatelyautostartoffon/off
Play sound when the current interval is completedsoundonon/off
功能 参数 默认 设置
当前间隔完成后是否开始下一个间隔 自动下一步 开关
立即启动计时器 自动启动 开关
当前间隔完成时播放声音 声音 开关

使用技巧 (Usage Tip)

To open this app in a small window on a desktop machine, type the following into the browser address bar or create a bookmark:

要在台式机的小窗口中打开此应用,请在浏览器地址栏中输入以下内容或创建书签:

**javascript:window.open('https://pomodoro-timer.github.io', 'pomodoro', 'height=350,width=400')**

Note #1: Sometimes browser will skip the front javascript: during paste, type this in manually if necessary.

注意#1:有时浏览器会跳过前面的javascript:在粘贴过程中,如有必要,请手动键入。

Note #2: Some browsers might not support all the features if invoked this way. For example Microsoft Edge does not support window sizing.

注意#2:如果以这种方式调用某些浏览器,则可能不支持所有功能。 例如,Microsoft Edge不支持窗口大小调整。

构建设置 (Build Setup)

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

翻译自: https://vuejsexamples.com/timer-for-pomodoro-technique-built-on-vue-js/

vue.js动态计时器

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值