mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 06:27:34 -07:00
[Client] 良い感じにした
This commit is contained in:
parent
51b09b936d
commit
58259c1ae5
1 changed files with 12 additions and 8 deletions
|
@ -25,27 +25,31 @@
|
|||
@Progress.done!
|
||||
|
||||
@refs.ui.refs.browser.on \move-root ~>
|
||||
@ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
|
||||
|
||||
# Rewrite URL
|
||||
history.push-state null null '/i/drive'
|
||||
|
||||
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
|
||||
# TODO: escape html characters in folder.name
|
||||
@ui.trigger \title '<i class="fa fa-folder-open"></i>' + folder.name
|
||||
document.title = 'Misskey Drive'
|
||||
@ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
|
||||
|
||||
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
|
||||
if !silent
|
||||
# Rewrite URL
|
||||
history.push-state null null '/i/drive/folder/' + folder.id
|
||||
|
||||
document.title = folder.name + ' | Misskey Drive'
|
||||
# TODO: escape html characters in folder.name
|
||||
@ui.trigger \title '<i class="fa fa-folder-open"></i>' + folder.name
|
||||
|
||||
@refs.ui.refs.browser.on \open-file (file, silent) ~>
|
||||
if !silent
|
||||
# Rewrite URL
|
||||
history.push-state null null '/i/drive/file/' + file.id
|
||||
|
||||
document.title = file.name + ' | Misskey Drive'
|
||||
# TODO: escape html characters in file.name
|
||||
@ui.trigger \title '<mk-file-type-icon class="icon"></mk-file-type-icon>' + file.name
|
||||
riot.mount \mk-file-type-icon do
|
||||
type: file.type
|
||||
|
||||
if !silent
|
||||
# Rewrite URL
|
||||
history.push-state null null '/i/drive/file/' + file.id
|
||||
</script>
|
||||
</mk-drive-page>
|
||||
|
|
Loading…
Reference in a new issue