├── src ├── icon.woff ├── main.js ├── index.css └── App.vue ├── .gitignore ├── .prettierignore ├── vite.config.js ├── index.html ├── package.json ├── LICENSE ├── icon.svg ├── .github └── workflows │ └── publish.yml └── README.md /src/icon.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/c6p/logseq-habit-tracker/HEAD/src/icon.woff -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | dist-ssr 5 | *.local 6 | releases 7 | test -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | dist-ssr 5 | *.local 6 | releases 7 | test -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "vite"; 2 | import vue from "@vitejs/plugin-vue"; 3 | 4 | const config = defineConfig({ 5 | base: "", 6 | build: { 7 | minify: true, 8 | }, 9 | plugins: [vue()], 10 | }); 11 | 12 | export default config; 13 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 || Color Group |
77 | Hidden | 78 |
79 | Longest Streak 80 | |
81 |
82 | Current Streak 83 | |
84 | At Most |
85 | Frequency / Period |
86 | 87 | Habits 88 | | 89 |93 | {{ 94 | d.format( 95 | (dateFormat || defaults.dateFormat).replaceAll("\\n", "\n") 96 | ) 97 | }} 98 | | 99 |
|---|---|---|---|---|---|---|---|
| 103 | 109 | | 110 |111 | setHabitProp(h, 'hidden', e.target.checked)" /> 112 | | 113 |114 | {{ h.longestStreak }} 115 | | 116 |{{ h.streak }} | 117 |118 | setHabitProp(h, 'atmost', e.target.checked)" /> 119 | | 120 |121 | { 122 | setHabitProp(h, 'period', e.target.value); 123 | updateHabits(); 124 | } 125 | " /> 126 | | 127 |{{ h.habit }} | 128 |129 | {{ t > 0 ? t : "" }} 130 | | 131 |