Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2d28c88d
authored
Mar 03, 2020
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Carry over public.html fixes to index.html
1 parent
313dfe99
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
frontend/index.html
frontend/js/app.js
frontend/index.html
View file @
2d28c88
...
@@ -96,8 +96,8 @@
...
@@ -96,8 +96,8 @@
<div
v-show=
"!busy && session.valid"
v-cloak
>
<div
v-show=
"!busy && session.valid"
v-cloak
>
<center>
<center>
<el-table
:data=
"entries"
style=
"max-width: 1280px;width: 100%"
height=
"100%"
empty-text=
"Folder is emtpy"
:default-sort=
"{ prop: 'filePath', order: 'descending' }"
@
row-click=
"open"
>
<el-table
:data=
"entries"
style=
"max-width: 1280px;
width: 100%"
height=
"100%"
empty-text=
"Folder is emtpy"
:default-sort=
"{ prop: 'filePath', order: 'descending' }"
@
row-click=
"open"
>
<el-table-column
prop=
"previewUrl"
label=
"Type"
width=
"
10
0px"
sortable
>
<el-table-column
prop=
"previewUrl"
label=
"Type"
width=
"
8
0px"
sortable
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<el-image
v-bind:src=
"scope.row.previewUrl"
class=
"list-icon"
style=
"width: 32px; height: 32px"
fit=
"cover"
></el-image>
<el-image
v-bind:src=
"scope.row.previewUrl"
class=
"list-icon"
style=
"width: 32px; height: 32px"
fit=
"cover"
></el-image>
</template>
</template>
...
...
frontend/js/app.js
View file @
2d28c88
...
@@ -150,7 +150,15 @@ function open(row, column, event) {
...
@@ -150,7 +150,15 @@ function open(row, column, event) {
app
.
activeEntry
.
fullPath
=
encode
(
sanitize
(
app
.
path
+
'/'
+
row
.
filePath
));
app
.
activeEntry
.
fullPath
=
encode
(
sanitize
(
app
.
path
+
'/'
+
row
.
filePath
));
app
.
previewDrawerVisible
=
true
app
.
previewDrawerVisible
=
true
// window.open(encode(path));
// need to wait for DOM element to exist
setTimeout
(
function
()
{
$
(
'iframe'
).
on
(
'load'
,
function
(
e
)
{
if
(
!
e
.
target
.
contentWindow
.
document
.
body
)
return
;
e
.
target
.
contentWindow
.
document
.
body
.
style
.
display
=
'flex'
e
.
target
.
contentWindow
.
document
.
body
.
style
.
justifyContent
=
'center'
});
},
0
);
}
}
function
uploadFiles
(
files
)
{
function
uploadFiles
(
files
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment