dsh-half-page 0.3.31 → 0.3.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +2 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -358,7 +358,8 @@ window.__ModuleLoader__.load({
358
358
  paged ? h('div', { style: { ...S.dim, minWidth: 46, textAlign: 'center' } }, all ? '全部' : ((page + 1) + ' / ' + pages)) : null,
359
359
  paged ? h('button', { style: S.btn, disabled: all || page >= pages - 1, onClick: () => setView({ page: page + 1 }) }, '›') : null,
360
360
  paged ? h('button', { style: all ? S.btnOn : S.btn, onClick: () => setView({ all: !all, page: 0 }) }, all ? '分页' : '全部') : null,
361
- h('button', { style: S.btn, onClick: () => setView({ sort: (sortMode + 1) % 3, page: 0 }) }, sortLabels[sortMode]),
361
+ h('button', { style: sortMode === 2 ? S.btn : S.btnOn, onClick: () => setView({ sort: sortMode === 1 ? 0 : (sortMode === 0 ? 1 : 0), page: 0 }) }, sortMode === 1 ? '章节 ↓' : '章节 ↑'),
362
+ h('button', { style: sortMode === 2 ? S.btnOn : S.btn, onClick: () => setView({ sort: 2, page: 0 }) }, '时间 ↓'),
362
363
  h('button', { style: S.btn, onClick: () => copy(bk.chapters.map((c) => '## ' + c.title + '\n' + c.lines.join('\n')).join('\n\n')) }, '复制这本'),
363
364
  ),
364
365
  list.map((c, ci) => h('div', { key: ci, style: { marginBottom: 6 } },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-half-page",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "private": false,
5
5
  "author": "鹿野 <luye@dsh.local>",
6
6
  "license": "MIT",