[Client:Mobile] ⭐️🍮⭐️
This commit is contained in:
parent
2943cf4899
commit
3e00b13039
|
@ -25,27 +25,33 @@
|
||||||
@Progress.done!
|
@Progress.done!
|
||||||
|
|
||||||
@refs.ui.refs.browser.on \move-root ~>
|
@refs.ui.refs.browser.on \move-root ~>
|
||||||
# Rewrite URL
|
title = 'Misskey Drive'
|
||||||
history.push-state null null '/i/drive'
|
|
||||||
|
|
||||||
document.title = 'Misskey Drive'
|
# Rewrite URL
|
||||||
|
history.push-state null, title, '/i/drive'
|
||||||
|
|
||||||
|
document.title = title
|
||||||
@ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
|
@ui.trigger \title '<i class="fa fa-cloud"></i>ドライブ'
|
||||||
|
|
||||||
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
|
@refs.ui.refs.browser.on \open-folder (folder, silent) ~>
|
||||||
|
title = folder.name + ' | Misskey Drive'
|
||||||
|
|
||||||
if !silent
|
if !silent
|
||||||
# Rewrite URL
|
# Rewrite URL
|
||||||
history.push-state null null '/i/drive/folder/' + folder.id
|
history.push-state null, title, '/i/drive/folder/' + folder.id
|
||||||
|
|
||||||
document.title = folder.name + ' | Misskey Drive'
|
document.title = title
|
||||||
# TODO: escape html characters in folder.name
|
# TODO: escape html characters in folder.name
|
||||||
@ui.trigger \title '<i class="fa fa-folder-open"></i>' + folder.name
|
@ui.trigger \title '<i class="fa fa-folder-open"></i>' + folder.name
|
||||||
|
|
||||||
@refs.ui.refs.browser.on \open-file (file, silent) ~>
|
@refs.ui.refs.browser.on \open-file (file, silent) ~>
|
||||||
|
title = file.name + ' | Misskey Drive'
|
||||||
|
|
||||||
if !silent
|
if !silent
|
||||||
# Rewrite URL
|
# Rewrite URL
|
||||||
history.push-state null null '/i/drive/file/' + file.id
|
history.push-state null, title, '/i/drive/file/' + file.id
|
||||||
|
|
||||||
document.title = file.name + ' | Misskey Drive'
|
document.title = title
|
||||||
# TODO: escape html characters in file.name
|
# TODO: escape html characters in file.name
|
||||||
@ui.trigger \title '<mk-file-type-icon class="icon"></mk-file-type-icon>' + file.name
|
@ui.trigger \title '<mk-file-type-icon class="icon"></mk-file-type-icon>' + file.name
|
||||||
riot.mount \mk-file-type-icon do
|
riot.mount \mk-file-type-icon do
|
||||||
|
|
Loading…
Reference in New Issue