chore(client): tweak ui
This commit is contained in:
		
							parent
							
								
									c0eba65527
								
							
						
					
					
						commit
						a785f1f933
					
				
					 4 changed files with 34 additions and 22 deletions
				
			
		|  | @ -869,6 +869,14 @@ logoutConfirm: "ログアウトしますか?" | ||||||
| lastActiveDate: "最終利用日時" | lastActiveDate: "最終利用日時" | ||||||
| statusbar: "ステータスバー" | statusbar: "ステータスバー" | ||||||
| pleaseSelect: "選択してください" | pleaseSelect: "選択してください" | ||||||
|  | reverse: "反転" | ||||||
|  | colored: "色付き" | ||||||
|  | refreshInterval: "更新間隔" | ||||||
|  | label: "ラベル" | ||||||
|  | type: "タイプ" | ||||||
|  | speed: "速度" | ||||||
|  | slow: "遅い" | ||||||
|  | fast: "速い" | ||||||
| 
 | 
 | ||||||
| _emailUnavailable: | _emailUnavailable: | ||||||
|   used: "既に使用されています" |   used: "既に使用されています" | ||||||
|  |  | ||||||
|  | @ -198,7 +198,7 @@ const onMousedown = (ev: MouseEvent | TouchEvent) => { | ||||||
| 					height: 100%; | 					height: 100%; | ||||||
| 					background: var(--accent); | 					background: var(--accent); | ||||||
| 					opacity: 0.5; | 					opacity: 0.5; | ||||||
| 					transition: width 0.2s cubic-bezier(0,0,0,1); | 					//transition: width 0.2s cubic-bezier(0,0,0,1); | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
|  | @ -231,7 +231,7 @@ const onMousedown = (ev: MouseEvent | TouchEvent) => { | ||||||
| 				cursor: grab; | 				cursor: grab; | ||||||
| 				background: var(--accent); | 				background: var(--accent); | ||||||
| 				border-radius: 999px; | 				border-radius: 999px; | ||||||
| 				transition: left 0.2s cubic-bezier(0,0,0,1); | 				//transition: left 0.2s cubic-bezier(0,0,0,1); | ||||||
| 
 | 
 | ||||||
| 				&:hover { | 				&:hover { | ||||||
| 					background: var(--accentLighten); | 					background: var(--accentLighten); | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
| 	</FormSelect> | 	</FormSelect> | ||||||
| 
 | 
 | ||||||
| 	<MkInput v-model="statusbar.name" manual-save class="_formBlock"> | 	<MkInput v-model="statusbar.name" manual-save class="_formBlock"> | ||||||
| 		<template #label>Name</template> | 		<template #label>{{ i18n.ts.label }}</template> | ||||||
| 	</MkInput> | 	</MkInput> | ||||||
| 
 | 
 | ||||||
| 	<MkSwitch v-model="statusbar.black" class="_formBlock"> | 	<MkSwitch v-model="statusbar.black" class="_formBlock"> | ||||||
|  | @ -16,7 +16,7 @@ | ||||||
| 	</MkSwitch> | 	</MkSwitch> | ||||||
| 
 | 
 | ||||||
| 	<FormRadios v-model="statusbar.size" class="_formBlock"> | 	<FormRadios v-model="statusbar.size" class="_formBlock"> | ||||||
| 		<template #label>Size</template> | 		<template #label>{{ i18n.ts.size }}</template> | ||||||
| 		<option value="verySmall">{{ i18n.ts.small }}+</option> | 		<option value="verySmall">{{ i18n.ts.small }}+</option> | ||||||
| 		<option value="small">{{ i18n.ts.small }}</option> | 		<option value="small">{{ i18n.ts.small }}</option> | ||||||
| 		<option value="medium">{{ i18n.ts.medium }}</option> | 		<option value="medium">{{ i18n.ts.medium }}</option> | ||||||
|  | @ -29,27 +29,29 @@ | ||||||
| 			<template #label>URL</template> | 			<template #label>URL</template> | ||||||
| 		</MkInput> | 		</MkInput> | ||||||
| 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | ||||||
| 			<template #label>Refresh interval</template> | 			<template #label>{{ i18n.ts.refreshInterval }}</template> | ||||||
| 		</MkInput> |  | ||||||
| 		<MkInput v-model="statusbar.props.marqueeDuration" manual-save class="_formBlock" type="number"> |  | ||||||
| 			<template #label>Duration</template> |  | ||||||
| 		</MkInput> | 		</MkInput> | ||||||
|  | 		<FormRange v-model="statusbar.props.marqueeDuration" :min="5" :max="150" :step="1" class="_formBlock"> | ||||||
|  | 			<template #label>{{ i18n.ts.speed }}</template> | ||||||
|  | 			<template #caption>{{ i18n.ts.fast }} <-> {{ i18n.ts.slow }}</template> | ||||||
|  | 		</FormRange> | ||||||
| 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | ||||||
| 			<template #label>Reverse</template> | 			<template #label>{{ i18n.ts.reverse }}</template> | ||||||
| 		</MkSwitch> | 		</MkSwitch> | ||||||
| 	</template> | 	</template> | ||||||
| 	<template v-else-if="statusbar.type === 'federation'"> | 	<template v-else-if="statusbar.type === 'federation'"> | ||||||
| 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | ||||||
| 			<template #label>Refresh interval</template> | 			<template #label>{{ i18n.ts.refreshInterval }}</template> | ||||||
| 		</MkInput> |  | ||||||
| 		<MkInput v-model="statusbar.props.marqueeDuration" manual-save class="_formBlock" type="number"> |  | ||||||
| 			<template #label>Duration</template> |  | ||||||
| 		</MkInput> | 		</MkInput> | ||||||
|  | 		<FormRange v-model="statusbar.props.marqueeDuration" :min="5" :max="150" :step="1" class="_formBlock"> | ||||||
|  | 			<template #label>{{ i18n.ts.speed }}</template> | ||||||
|  | 			<template #caption>{{ i18n.ts.fast }} <-> {{ i18n.ts.slow }}</template> | ||||||
|  | 		</FormRange> | ||||||
| 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | ||||||
| 			<template #label>Reverse</template> | 			<template #label>{{ i18n.ts.reverse }}</template> | ||||||
| 		</MkSwitch> | 		</MkSwitch> | ||||||
| 		<MkSwitch v-model="statusbar.props.colored" class="_formBlock"> | 		<MkSwitch v-model="statusbar.props.colored" class="_formBlock"> | ||||||
| 			<template #label>Colored</template> | 			<template #label>{{ i18n.ts.colored }}</template> | ||||||
| 		</MkSwitch> | 		</MkSwitch> | ||||||
| 	</template> | 	</template> | ||||||
| 	<template v-else-if="statusbar.type === 'userList' && userLists != null"> | 	<template v-else-if="statusbar.type === 'userList' && userLists != null"> | ||||||
|  | @ -58,18 +60,19 @@ | ||||||
| 			<option v-for="list in userLists" :value="list.id">{{ list.name }}</option> | 			<option v-for="list in userLists" :value="list.id">{{ list.name }}</option> | ||||||
| 		</FormSelect> | 		</FormSelect> | ||||||
| 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | 		<MkInput v-model="statusbar.props.refreshIntervalSec" manual-save class="_formBlock" type="number"> | ||||||
| 			<template #label>Refresh interval</template> | 			<template #label>{{ i18n.ts.refreshInterval }}</template> | ||||||
| 		</MkInput> |  | ||||||
| 		<MkInput v-model="statusbar.props.marqueeDuration" manual-save class="_formBlock" type="number"> |  | ||||||
| 			<template #label>Duration</template> |  | ||||||
| 		</MkInput> | 		</MkInput> | ||||||
|  | 		<FormRange v-model="statusbar.props.marqueeDuration" :min="5" :max="150" :step="1" class="_formBlock"> | ||||||
|  | 			<template #label>{{ i18n.ts.speed }}</template> | ||||||
|  | 			<template #caption>{{ i18n.ts.fast }} <-> {{ i18n.ts.slow }}</template> | ||||||
|  | 		</FormRange> | ||||||
| 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | 		<MkSwitch v-model="statusbar.props.marqueeReverse" class="_formBlock"> | ||||||
| 			<template #label>Reverse</template> | 			<template #label>{{ i18n.ts.reverse }}</template> | ||||||
| 		</MkSwitch> | 		</MkSwitch> | ||||||
| 	</template> | 	</template> | ||||||
| 
 | 
 | ||||||
| 	<div style="display: flex; gap: var(--margin); flex-wrap: wrap;"> | 	<div style="display: flex; gap: var(--margin); flex-wrap: wrap;"> | ||||||
| 		<FormButton danger @click="del">Delete</FormButton> | 		<FormButton danger @click="del">{{ i18n.ts.remove }}</FormButton> | ||||||
| 	</div> | 	</div> | ||||||
| </div> | </div> | ||||||
| </template> | </template> | ||||||
|  | @ -81,6 +84,7 @@ import MkInput from '@/components/form/input.vue'; | ||||||
| import MkSwitch from '@/components/form/switch.vue'; | import MkSwitch from '@/components/form/switch.vue'; | ||||||
| import FormRadios from '@/components/form/radios.vue'; | import FormRadios from '@/components/form/radios.vue'; | ||||||
| import FormButton from '@/components/ui/button.vue'; | import FormButton from '@/components/ui/button.vue'; | ||||||
|  | import FormRange from '@/components/form/range.vue'; | ||||||
| import * as os from '@/os'; | import * as os from '@/os'; | ||||||
| import { menuDef } from '@/menu'; | import { menuDef } from '@/menu'; | ||||||
| import { defaultStore } from '@/store'; | import { defaultStore } from '@/store'; | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
| 		<template #suffix>{{ x.name }}</template> | 		<template #suffix>{{ x.name }}</template> | ||||||
| 		<XStatusbar :_id="x.id" :user-lists="userLists"/> | 		<XStatusbar :_id="x.id" :user-lists="userLists"/> | ||||||
| 	</FormFolder> | 	</FormFolder> | ||||||
| 	<FormButton @click="add">add</FormButton> | 	<FormButton primary @click="add">{{ i18n.ts.add }}</FormButton> | ||||||
| </div> | </div> | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue