Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
342
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
25
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Sharkey
Commits
02f3d8b0
Commit
02f3d8b0
authored
7 years ago
by
こぴなたみぽ
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
131bbce6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/web/app/desktop/-tags/pages/drive.tag
+0
-37
0 additions, 37 deletions
src/web/app/desktop/-tags/pages/drive.tag
src/web/app/desktop/views/pages/drive.vue
+45
-0
45 additions, 0 deletions
src/web/app/desktop/views/pages/drive.vue
with
45 additions
and
37 deletions
src/web/app/desktop/-tags/pages/drive.tag
deleted
100644 → 0
+
0
−
37
View file @
131bbce6
<mk-drive-page>
<mk-drive-browser ref="browser" folder={ opts.folder }/>
<style lang="stylus" scoped>
:scope
display block
position fixed
width 100%
height 100%
background #fff
> mk-drive-browser
height 100%
</style>
<script lang="typescript">
this.on('mount', () => {
document.title = 'Misskey Drive';
this.$refs.browser.on('move-root', () => {
const title = 'Misskey Drive';
// Rewrite URL
history.pushState(null, title, '/i/drive');
document.title = title;
});
this.$refs.browser.on('open-folder', folder => {
const title = folder.name + ' | Misskey Drive';
// Rewrite URL
history.pushState(null, title, '/i/drive/folder/' + folder.id);
document.title = title;
});
});
</script>
</mk-drive-page>
This diff is collapsed.
Click to expand it.
src/web/app/desktop/views/pages/drive.vue
0 → 100644
+
45
−
0
View file @
02f3d8b0
<
template
>
<div
class=
"mk-drive-page"
>
<mk-drive
:folder=
"folder"
@
move-root=
"onMoveRoot"
@
open-folder=
"onOpenFolder"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'
vue
'
;
export
default
Vue
.
extend
({
props
:
[
'
folder
'
],
mounted
()
{
document
.
title
=
'
Misskey Drive
'
;
},
methods
:
{
onMoveRoot
()
{
const
title
=
'
Misskey Drive
'
;
// Rewrite URL
history
.
pushState
(
null
,
title
,
'
/i/drive
'
);
document
.
title
=
title
;
},
onOpenFolder
(
folder
)
{
const
title
=
folder
.
name
+
'
| Misskey Drive
'
;
// Rewrite URL
history
.
pushState
(
null
,
title
,
'
/i/drive/folder/
'
+
folder
.
id
);
document
.
title
=
title
;
}
}
});
</
script
>
<
style
lang=
"stylus"
scoped
>
.mk-drive-page
position fixed
width 100%
height 100%
background #fff
> .mk-drive
height 100%
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment