{"id":134,"date":"2025-04-10T19:21:20","date_gmt":"2025-04-10T10:21:20","guid":{"rendered":"https:\/\/suyasuyahirohiro.com\/?p=134"},"modified":"2025-04-10T19:21:20","modified_gmt":"2025-04-10T10:21:20","slug":"%e3%83%9d%e3%83%a2%e3%83%89%e3%83%bc%e3%83%ad%e3%82%bf%e3%82%a4%e3%83%9e%e3%83%bc%ef%bc%9a%e3%83%95%e3%83%ad%e3%83%b3%e3%83%88%e3%82%a8%e3%83%b3%e3%83%89%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/suyasuyahirohiro.com\/?p=134","title":{"rendered":"\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc\uff1a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u4f5c\u308b"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f\uff01<br>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u521d\u5fc3\u8005\u306e\u3084\u3059\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u4f5c\u54c1\u3068\u3057\u3066\u3001\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc\u3092\u4f5c\u6210\u3057\u305f\u969b\u306e\u3001<br>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u90e8\u5206\u306e\u958b\u767a\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<br>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306fJava\u3067\u4f5c\u6210\u6e08\u307f\u306a\u306e\u3067\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306f\u4e3b\u306b\u8868\u793a\u90e8\u5206\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6280\u8853\u9078\u5b9a\uff1aVue.js\u3092\u9078\u3093\u3060\u7406\u7531<\/h2>\n\n\n\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u958b\u767a\u7d4c\u9a13\u304c\u6d45\u3044\u305f\u3081\u3001\u307e\u305a\u306f\u60c5\u5831\u53ce\u96c6\u304b\u3089\u59cb\u3081\u307e\u3057\u305f\u3002<br>\u4e3b\u8981\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u3001Vue.js\u3001React\u3001Angular\u304c\u3042\u308b\u3053\u3068\u3092\u77e5\u308a\u3001<br>\u305d\u308c\u305e\u308c\u306e\u7279\u5fb4\u3092\u6bd4\u8f03\u691c\u8a0e\u3002<br>\u305d\u306e\u7d50\u679c\u3001\u30ab\u30ec\u30f3\u30c0\u30fc\u6a5f\u80fd\u306e\u5b9f\u88c5\u306e\u3057\u3084\u3059\u3055\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u306e\u4f4e\u3055\u3092\u8003\u616e\u3057\u3001Vue.js\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"343\" src=\"https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-09-21.42.17-1024x343.png\" alt=\"\" class=\"wp-image-135\" style=\"width:736px;height:auto\" srcset=\"https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-09-21.42.17-1024x343.png 1024w, https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-09-21.42.17-300x101.png 300w, https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-09-21.42.17-768x257.png 768w, https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-09-21.42.17.png 1468w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Vue.js \u306e\u6982\u8981\u3068\u74b0\u5883\u69cb\u7bc9<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">1.1. Vue.js\u3068\u306f\uff1f<\/h4>\n\n\n\n<p>Vue.js\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306eJavaScript\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002HTML\u3001CSS\u3001JavaScript\u3092\u7d44\u307f\u5408\u308f\u305b\u3001\u52d5\u7684\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306aWeb\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3067\u304d\u307e\u3059\u3002<br>React\u3084Angular\u3068\u6bd4\u8f03\u3057\u3066\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u6bd4\u8f03\u7684\u4f4e\u3044\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2. Node.js\u3068npm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<p>Vue.js\u306e\u958b\u767a\u306b\u306f\u3001Node.js\u3068npm\uff08Node Package Manager\uff09\u304c\u5fc5\u8981\u3067\u3059\u3002<br>Node.js\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\uff08<a href=\"https:\/\/nodejs.org\/ja\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nodejs.org\/ja\/<\/a>\uff09\u304b\u3089\u63a8\u5968\u7248\uff08LTS\uff09\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>node -v\nnpm -v<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">1.3. Vue CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<p>Vue CLI\uff08Command Line Interface\uff09\u306f\u3001<br>Vue.js\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3084\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<br>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001Vue CLI\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm install -g @vue\/cli<\/code><\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vue --version<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Vue.js\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001Vue.js\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vue create pomodoro-timer-front<\/code><\/pre>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4f5c\u6210\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br>\u30d6\u30e9\u30a6\u30b6\u3067<code>http:\/\/localhost:8080\/<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001Vue.js\u306e\u521d\u671f\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc\u306e\u57fa\u672c\u6a5f\u80fd\u3092\u5b9f\u88c5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3.1. \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f5c\u6210<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Vue.js \u3067\u306f\u3001UI \u306e\u90e8\u54c1\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template>\n  &lt;div>\n    &lt;h1>\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc&lt;\/h1>\n    &lt;p>{{ message }}&lt;\/p>\n    &lt;button @click=\"startTimer\">\u958b\u59cb&lt;\/button>\n  &lt;\/div>\n&lt;\/template>\n\n&lt;script>\nexport default {\n  data() {\n    return {\n      message: \"\u30bf\u30a4\u30de\u30fc\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\",\n    };\n  },\n  methods: {\n    startTimer() {\n      \/\/ \u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb\u51e6\u7406\n      this.message = \"\u30bf\u30a4\u30de\u30fc\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\u3002\";\n    },\n  },\n};\n&lt;\/script>\n\n&lt;style scoped>\nh1 {\n  color: blue;\n}\n&lt;\/style>\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.2. \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u914d\u7f6e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>src\/App.vue<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u914d\u7f6e\u3057\u307e\u3059\u3002 <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template>\n  &lt;PomodoroTimer \/>\n&lt;\/template>\n\n&lt;script>\nimport PomodoroTimer from \".\/components\/PomodoroTimer.vue\";\n\nexport default {\n  components: {\n    PomodoroTimer,\n  },\n};\n&lt;\/script>\n<\/code><\/pre>\n\n\n\n<p>\u307e\u305a\u306f\u96db\u5f62\u304c\u5b8c\u6210<br>\u3053\u3053\u304b\u3089\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><img decoding=\"async\" src=\"https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-10-12.14.59.png\" alt=\"\"><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">4.\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u3092\u4f5c\u308b<\/h2>\n\n\n\n<p>\u4ee5\u524d\u3068\u540c\u3058\u3088\u3046\u306b\u307e\u305a\u306f\u30bf\u30b9\u30af\u7528\u306e\u30bf\u30a4\u30de\u30fc1\u3064\u304b\u3089\u4f5c\u308a\u307e\u3059<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30bf\u30b9\u30af\u7528\u30bf\u30a4\u30de\u30fc<\/h3>\n\n\n\n<p><br><br><strong>\u30c7\u30fc\u30bf\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8ffd\u52a0:<\/strong><br><code>data()<\/code>\u95a2\u6570\u5185\u306b<code>minutes<\/code>\u3068<code>seconds<\/code>\u3092\u8ffd\u52a0\u3057\u3001\u521d\u671f\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>data() {\n  return {\n    minutes: 25, \/\/ \u521d\u671f\u5024\u309225\u5206\u306b\u8a2d\u5b9a\n    seconds: 0, \/\/ \u521d\u671f\u5024\u30920\u79d2\u306b\u8a2d\u5b9a\n  };\n},<\/code><\/pre>\n\n\n\n<p><strong>\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30b9\u30e9\u30a4\u30c0\u30fc\u306e\u8ffd\u52a0:<\/strong><br><code>&lt;template><\/code>\u5185\u306b\u5206\u3068\u79d2\u306e\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30b9\u30e9\u30a4\u30c0\u30fc\u3092\u8ffd\u52a0\u3057\u3001<code>v-model<\/code>\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067<code>minutes<\/code>\u3068<code>seconds<\/code>\u306b\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template>\n  &lt;div>\n    &lt;div>\n      &lt;label for=\"minutes\">\u5206\uff1a&lt;\/label>\n      &lt;input type=\"number\" id=\"minutes\" v-model=\"minutes\" min=\"0\" max=\"59\" \/>\n      &lt;input type=\"range\" v-model=\"minutes\" min=\"0\" max=\"59\" \/>\n    &lt;\/div>\n    &lt;div>\n      &lt;label for=\"seconds\">\u79d2\uff1a&lt;\/label>\n      &lt;input type=\"number\" id=\"seconds\" v-model=\"seconds\" min=\"0\" max=\"59\" \/>\n      &lt;input type=\"range\" v-model=\"seconds\" min=\"0\" max=\"59\" \/>\n    &lt;\/div>\n  &lt;\/div>\n&lt;\/template><\/code><\/pre>\n\n\n\n<p><strong>\u30bf\u30a4\u30de\u30fc\u8868\u793a\u306e\u8ffd\u52a0:<\/strong><br><code>&lt;template><\/code>\u5185\u306b<code>{{ formattedTime }}<\/code>\u3092\u8ffd\u52a0\u3057\u3001\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u9818\u57df\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template>\n  &lt;div>\n    &lt;p>\u8a2d\u5b9a\u6642\u9593\uff1a{{ formattedTime }}&lt;\/p>\n  &lt;\/div>\n&lt;\/template><\/code><\/pre>\n\n\n\n<p><strong>\u7b97\u51fa\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u8ffd\u52a0:<\/strong><br><code>computed<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u5185\u306b<code>formattedTime<\/code>\u3092\u8ffd\u52a0\u3057\u3001\u5206\u3068\u79d2\u3092\u300c\u5206\uff1a\u79d2\u300d\u306e\u5f62\u5f0f\u3067\u8868\u793a\u3059\u308b\u6587\u5b57\u5217\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>computed: {\n  formattedTime() {\n    const minutes = this.minutes.toString().padStart(2, \"0\");\n    const seconds = this.seconds.toString().padStart(2, \"0\");\n    return `${minutes}:${seconds}`;\n  },\n},<\/code><\/pre>\n\n\n\n<p><strong>\u30bf\u30a4\u30de\u30fc\u958b\u59cb\u51e6\u7406\u306e\u4fee\u6b63:<\/strong><br><code>startTimer<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4fee\u6b63\u3057\u3001<code>minutes<\/code>\u3068<code>seconds<\/code>\u306e\u5024\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>methods: {\n  startTimer() {\n    \/\/ \u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb\u51e6\u7406\n    console.log(`\u30bf\u30a4\u30de\u30fc\u3092\u958b\u59cb\u3057\u307e\u3057\u305f\u3002${this.minutes}\u5206${this.seconds}\u79d2`);\n    \/\/ \u3053\u3053\u3067Java\u306bminutes\u3068seconds\u306e\u5024\u3092\u9001\u4fe1\u3059\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n  },\n},<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"762\" height=\"496\" src=\"https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-10-13.03.44.png\" alt=\"\" class=\"wp-image-137\" srcset=\"https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-10-13.03.44.png 762w, https:\/\/suyasuyahirohiro.com\/wp-content\/uploads\/2025\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2025-04-10-13.03.44-300x195.png 300w\" sizes=\"(max-width: 762px) 100vw, 762px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u4f5c\u6210<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>1\uff1a\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u306e\u30c7\u30fc\u30bf\u3068\u8868\u793a\u8981\u7d20\u3092\u8ffd\u52a0<\/strong><\/h4>\n\n\n\n<p><code>data()<\/code>\u306b\u4f11\u61a9\u7528\u306e\u5206\u3068\u79d2\u306e\u30c7\u30fc\u30bf\uff08<code>breakMinutes<\/code>\u3001<code>breakSeconds<\/code>\uff09\u3092\u8ffd\u52a0\u3002<br>\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u306e\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30b9\u30e9\u30a4\u30c0\u30fc\u3001\u8868\u793a\u9818\u57df\u3092<code>&lt;template><\/code>\u306b\u8ffd\u52a0\u3002<br>\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb\u30dc\u30bf\u30f3\uff08<code>breakTimerStartButton<\/code>\uff09\u3092\u8ffd\u52a0\u3057\u3001\u521d\u671f\u72b6\u614b\u3067\u306f\u975e\u8868\u793a\u3002<br>\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u9818\u57df\uff08<code>breakTimerDisplay<\/code>\uff09\u3092\u8ffd\u52a0\u3057\u3001\u521d\u671f\u72b6\u614b\u3067\u306f\u975e\u8868\u793a\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template>\n  &lt;div>\n    &lt;h1>\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc&lt;\/h1>\n    &lt;div>\n      &lt;label for=\"minutes\">\u5206\uff1a&lt;\/label>\n      &lt;input type=\"number\" id=\"minutes\" v-model=\"minutes\" min=\"0\" max=\"59\" \/>\n      &lt;input type=\"range\" v-model=\"minutes\" min=\"0\" max=\"59\" \/>\n    &lt;\/div>\n    &lt;div>\n      &lt;label for=\"seconds\">\u79d2\uff1a&lt;\/label>\n      &lt;input type=\"number\" id=\"seconds\" v-model=\"seconds\" min=\"0\" max=\"59\" \/>\n      &lt;input type=\"range\" v-model=\"seconds\" min=\"0\" max=\"59\" \/>\n    &lt;\/div>\n    &lt;p>\u8a2d\u5b9a\u6642\u9593\uff1a{{ formattedTime }}&lt;\/p>\n    &lt;button @click=\"startTimer\">\u958b\u59cb&lt;\/button>\n\n    &lt;div v-if=\"breakTimerStartButton\">\n      &lt;h2>\u4f11\u61a9\u30bf\u30a4\u30de\u30fc&lt;\/h2>\n      &lt;div>\n        &lt;label for=\"breakMinutes\">\u5206\uff1a&lt;\/label>\n        &lt;input type=\"number\" id=\"breakMinutes\" v-model=\"breakMinutes\" min=\"0\" max=\"59\" \/>\n        &lt;input type=\"range\" v-model=\"breakMinutes\" min=\"0\" max=\"59\" \/>\n      &lt;\/div>\n      &lt;div>\n        &lt;label for=\"breakSeconds\">\u79d2\uff1a&lt;\/label>\n        &lt;input type=\"number\" id=\"breakSeconds\" v-model=\"breakSeconds\" min=\"0\" max=\"59\" \/>\n        &lt;input type=\"range\" v-model=\"breakSeconds\" min=\"0\" max=\"59\" \/>\n      &lt;\/div>\n      &lt;p>\u4f11\u61a9\u6642\u9593\uff1a{{ formattedBreakTime }}&lt;\/p>\n      &lt;button @click=\"startBreakTimer\">\u4f11\u61a9\u958b\u59cb&lt;\/button>\n    &lt;\/div>\n\n    &lt;p v-if=\"breakTimerDisplay\">\u4f11\u61a9\u6642\u9593\uff1a{{ formattedBreakTime }}&lt;\/p>\n  &lt;\/div>\n&lt;\/template>\n\n&lt;script>\nexport default {\n  data() {\n    return {\n      minutes: 25,\n      seconds: 0,\n      breakMinutes: 5, \/\/ \u4f11\u61a9\u6642\u9593\uff08\u5206\uff09\n      breakSeconds: 0, \/\/ \u4f11\u61a9\u6642\u9593\uff08\u79d2\uff09\n      breakTimerStartButton: false, \/\/ \u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u958b\u59cb\u30dc\u30bf\u30f3\u306e\u8868\u793a\/\u975e\u8868\u793a\n      breakTimerDisplay: false, \/\/ \u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u8868\u793a\u9818\u57df\u306e\u8868\u793a\/\u975e\u8868\u793a\n    };\n  },\n  \/\/ \u7701\u7565\n};\n&lt;\/script><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 \u30e1\u30a4\u30f3\u30bf\u30a4\u30de\u30fc\u7d42\u4e86\u6642\u306b\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u3092\u8868\u793a<\/h4>\n\n\n\n<p><code>startTimer()<\/code>\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u3001\u30e1\u30a4\u30f3\u30bf\u30a4\u30de\u30fc\u306e\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u3092\u8ffd\u52a0\u3002<br>\u30bf\u30a4\u30de\u30fc\u7d42\u4e86\u6642\u306b<code>this.breakTimerStartButton = true;<\/code>\u3092\u8a2d\u5b9a\u3057\u3001\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb\u30dc\u30bf\u30f3\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3 \u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u958b\u59cb\u51e6\u7406\u3092\u8ffd\u52a0<\/h4>\n\n\n\n<p><code>startBreakTimer()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3001\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u3092\u5b9f\u88c5\u3002<br>\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u958b\u59cb\u6642\u306b\u3001\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u5165\u529b\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u958b\u59cb\u30dc\u30bf\u30f3\u3092\u975e\u8868\u793a\u306b\u3057\u3001\u8868\u793a\u9818\u57df\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4 \u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u3092\u5b9f\u88c5<\/h4>\n\n\n\n<p>\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u8868\u793a\u9818\u57df\uff08<code>breakTimerDisplay<\/code>\uff09\u3092\u8ffd\u52a0\u3057\u3001\u4f11\u61a9\u6642\u9593\u3092\u8868\u793a\u3002<br>\u4f11\u61a9\u30bf\u30a4\u30de\u30fc\u306e\u30ab\u30a6\u30f3\u30c8\u30c0\u30a6\u30f3\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u3001\u7d4c\u904e\u6642\u9593\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4e0a\u8a18\u306e\u624b\u9806\u3067\u3001\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc\u306e\u57fa\u672c\u6a5f\u80fd\u3068\u4f11\u61a9\u7528\u30bf\u30a4\u30de\u30fc\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3057\u305f\u3002<br>\u3053\u306e\u6b21\u306f\u30d5\u30ed\u30f3\u30c8\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u7d10\u4ed8\u3051\u3092\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u521d\u5fc3\u8005\u306e\u3084\u3059\u3067\u3059\u3002 \u4eca\u56de\u306f\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ea\u30aa\u4f5c\u54c1\u3068\u3057\u3066\u3001\u30dd\u30e2\u30c9\u30fc\u30ed\u30bf\u30a4\u30de\u30fc\u3092\u4f5c\u6210\u3057\u305f\u969b\u306e\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u90e8\u5206\u306e\u958b\u767a\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306fJava\u3067\u4f5c\u6210\u6e08\u307f\u306a\u306e\u3067\u3001 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":2,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/suyasuyahirohiro.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}