Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
e2bce6e2
Commit
e2bce6e2
authored
1 year ago
by
vkovtun
Browse files
Options
Downloads
Patches
Plain Diff
BIS-753: Added several more file types and file icons.
parent
7eb99fd3
No related branches found
No related tags found
1 merge request
!40
SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ui-admin/src/js/components/App.jsx
+6
-3
6 additions, 3 deletions
ui-admin/src/js/components/App.jsx
ui-admin/src/js/components/database/data-browser/DataBrowser.jsx
+31
-4
31 additions, 4 deletions
...n/src/js/components/database/data-browser/DataBrowser.jsx
with
37 additions
and
7 deletions
ui-admin/src/js/components/App.jsx
+
6
−
3
View file @
e2bce6e2
...
@@ -21,10 +21,13 @@ import ComponentContext from '@src/js/components/common/ComponentContext.js'
...
@@ -21,10 +21,13 @@ import ComponentContext from '@src/js/components/common/ComponentContext.js'
import
{
library
}
from
'
@fortawesome/fontawesome-svg-core
'
import
{
library
}
from
'
@fortawesome/fontawesome-svg-core
'
import
{
fab
}
from
'
@fortawesome/free-brands-svg-icons
'
import
{
fab
}
from
'
@fortawesome/free-brands-svg-icons
'
import
{
faFile
,
faFileArchive
,
faFileAudio
,
faFileImage
,
faFileText
,
faFileVideo
,
faFolder
}
from
'
@fortawesome/free-solid-svg-icons
'
import
{
faFolder
,
faFile
,
faFileArchive
,
faFileAudio
,
faFileImage
,
faFileText
,
faFileVideo
,
faFileCode
,
faFilePdf
,
faFileWord
,
faFileExcel
,
faFilePowerpoint
,
faFileCsv
}
from
'
@fortawesome/free-solid-svg-icons
'
library
.
add
(
fab
,
faFile
,
faFolder
,
faFileAudio
,
faFileText
,
faFileVideo
,
library
.
add
(
fab
,
faFolder
,
faFile
,
faFileAudio
,
faFileText
,
faFileVideo
,
faFileImage
,
faFileArchive
)
faFileCode
,
faFileImage
,
faFileArchive
,
faFilePdf
,
faFileWord
,
faFileExcel
,
faFilePowerpoint
,
faFileCsv
)
const
styles
=
{
const
styles
=
{
container
:
{
container
:
{
...
...
This diff is collapsed.
Click to expand it.
ui-admin/src/js/components/database/data-browser/DataBrowser.jsx
+
31
−
4
View file @
e2bce6e2
...
@@ -67,6 +67,7 @@ const styles = theme => ({
...
@@ -67,6 +67,7 @@ const styles = theme => ({
const
configuration
=
const
configuration
=
[
[
// Coarse file formats
{
{
icon
:
'
file-audio
'
,
icon
:
'
file-audio
'
,
extensions
:
[
'
wav
'
,
'
mp3
'
,
'
acc
'
,
'
ogg
'
,
'
flac
'
,
'
m4a
'
,
'
wma
'
,
'
opus
'
,
extensions
:
[
'
wav
'
,
'
mp3
'
,
'
acc
'
,
'
ogg
'
,
'
flac
'
,
'
m4a
'
,
'
wma
'
,
'
opus
'
,
...
@@ -74,9 +75,8 @@ const configuration =
...
@@ -74,9 +75,8 @@ const configuration =
},
},
{
{
icon
:
'
file-text
'
,
icon
:
'
file-text
'
,
extensions
:
[
'
txt
'
,
'
rtf
'
,
'
doc
'
,
'
docx
'
,
'
pdf
'
,
'
xls
'
,
'
xlsx
'
,
extensions
:
[
'
txt
'
,
'
rtf
'
,
'
odt
'
,
'
ods
'
,
'
odp
'
,
'
html
'
,
'
htm
'
,
'
epub
'
,
'
ppt
'
,
'
pptx
'
,
'
odt
'
,
'
ods
'
,
'
odp
'
,
'
csv
'
,
'
tsv
'
,
'
html
'
,
'
htm
'
,
'
md
'
,
'
tex
'
,
'
pages
'
,
'
numbers
'
,
'
key
'
,
'
mobi
'
,
'
indd
'
]
'
xml
'
,
'
epub
'
,
'
md
'
,
'
tex
'
,
'
pages
'
,
'
numbers
'
,
'
key
'
,
'
mobi
'
,
'
indd
'
]
},
},
{
{
icon
:
'
file-video
'
,
icon
:
'
file-video
'
,
...
@@ -92,7 +92,34 @@ const configuration =
...
@@ -92,7 +92,34 @@ const configuration =
icon
:
'
file-archive
'
,
icon
:
'
file-archive
'
,
extensions
:
[
'
zip
'
,
'
rar
'
,
'
7z
'
,
'
tar
'
,
'
gz
'
,
'
bz2
'
,
'
xz
'
,
'
iso
'
,
'
zipx
'
,
extensions
:
[
'
zip
'
,
'
rar
'
,
'
7z
'
,
'
tar
'
,
'
gz
'
,
'
bz2
'
,
'
xz
'
,
'
iso
'
,
'
zipx
'
,
'
cab
'
,
'
arj
'
,
'
lz
'
,
'
lzma
'
,
'
z
'
,
'
tgz
'
,
'
ace
'
,
'
dmg
'
]
'
cab
'
,
'
arj
'
,
'
lz
'
,
'
lzma
'
,
'
z
'
,
'
tgz
'
,
'
ace
'
,
'
dmg
'
]
}
},
{
icon
:
'
file-code
'
,
extensions
:
[
'
xml
'
,
'
js
'
,
'
html
'
,
'
css
'
,
'
c
'
,
'
cpp
'
,
'
cs
'
,
'
php
'
,
'
rb
'
,
'
swift
'
,
'
go
'
,
'
rs
'
,
'
ts
'
,
'
json
'
,
'
sh
'
,
'
bat
'
,
'
sql
'
,
'
yaml
'
,
'
yml
'
,
'
jsx
'
,
'
tsx
'
,
'
pl
'
,
'
scala
'
,
'
kt
'
]
},
// Fine-grained file formats
{
icon
:
'
file-pdf
'
,
extensions
:
[
'
pdf
'
]
},
{
icon
:
'
file-word
'
,
extensions
:
[
'
doc
'
,
'
docx
'
]
},
{
icon
:
'
file-excel
'
,
extensions
:
[
'
xls
'
,
'
xlsx
'
]
},
{
icon
:
'
file-powerpoint
'
,
extensions
:
[
'
ppt
'
,
'
pptx
'
]
},
{
icon
:
'
file-csv
'
,
extensions
:
[
'
csv
'
,
'
tsv
'
]
},
]
]
class
DataBrowser
extends
React
.
Component
{
class
DataBrowser
extends
React
.
Component
{
...
...
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