Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
dir-index-html
Commits
3cf460a7
Commit
3cf460a7
authored
May 04, 2020
by
Jessica Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test rows and known icons for 5 most common video format
parent
e8d38c97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
knownIcons.txt
knownIcons.txt
+2
-0
test/main.go
test/main.go
+16
-0
No files found.
knownIcons.txt
View file @
3cf460a7
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
.key
.key
.less
.less
.mid
.mid
.mov
.mp3
.mp3
.mp4
.mp4
.mpg
.mpg
...
@@ -55,6 +56,7 @@
...
@@ -55,6 +56,7 @@
.tiff
.tiff
.txt
.txt
.wav
.wav
.wmv
.xls
.xls
.xlsx
.xlsx
.xml
.xml
...
...
test/main.go
View file @
3cf460a7
...
@@ -26,9 +26,25 @@ type directoryItem struct {
...
@@ -26,9 +26,25 @@ type directoryItem struct {
var
testData
=
listingTemplateData
{
var
testData
=
listingTemplateData
{
Listing
:
[]
directoryItem
{{
Listing
:
[]
directoryItem
{{
Size
:
"25 MiB"
,
Name
:
"film-in-one-of-many-formats-to-test-icons.avi"
,
Path
:
"film-in-one-of-many-formats-to-test-icons.avi"
,
},
{
Size
:
"25 MiB"
,
Name
:
"short-film.flv"
,
Path
:
"short-film.flv"
,
},
{
Size
:
"25 MiB"
,
Name
:
"short-film.wmv"
,
Path
:
"short-film.wmv"
,
},
{
Size
:
"25 MiB"
,
Size
:
"25 MiB"
,
Name
:
"short-film.mov"
,
Name
:
"short-film.mov"
,
Path
:
"short-film.mov"
,
Path
:
"short-film.mov"
,
},
{
Size
:
"25 MiB"
,
Name
:
"short-film.mp4"
,
Path
:
"short-film.mp4"
,
},
{
},
{
Size
:
"1 KiB"
,
Size
:
"1 KiB"
,
Name
:
"this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt"
,
Name
:
"this-piece-of-papers-got-47-words-37-sentences-58-words-we-wanna-know.txt"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment