Files
stf-DeviceFarmer/res/app/control-panes/explorer/explorer.pug
Denis Barbaron 2f54e40206 Upgrading STF for security reasons (#813)
* Upgrading STF for security reasons

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update semaphore files

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* upgrading STF for security reasons v2

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

* update yarn.lock file

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

---------

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
2024-11-22 11:41:20 +01:00

52 lines
1.7 KiB
Plaintext

//
Copyright © 2024 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0
//
.widget-container.fluid-height(ng-controller='ExplorerCtrl').stf-explorer
.heading
form.input-group.form-inline(name='explorerForm', ng-submit='dirEnterLocation()')
span.input-group-btn
button.btn.btn-primary-outline(ng-click='dirUp()')
i.fa.fa-level-up
input(type='text', ng-model='explorer.search',
ng-enter='dirEnterLocation()'
autocorrect='off', autocapitalize='off', spellcheck='false').form-control
span.input-group-btn
button.btn.btn-primary-outline(type='submit')
i.fa.fa-play
.widget-content.padded.selectable
table.table.table-hover.table-condensed.dataTable.ng-table
thead
tr
th
div(translate) Name
th
div(translate) Size
th
div(translate) Date
th
div(translate) Permissions
tbody
tr.header(ng-repeat='f in explorer.files | filter:search | orderBy: ["-mode|fileIsDir", "+name"]')
td
button.btn.btn-sm.btn-primary-outline(
ng-click='dirEnter(f.name)', ng-show='f.mode|fileIsDir')
span
i.fa.fa-folder-open
span {{f.name}}
button.btn.btn-sm.btn-primary-outline(
ng-click='getFile(f.name)', ng-hide='f.mode|fileIsDir')
span
i.fa.fa-file-o
span {{f.name}}
td
span(ng-show='f.mode|fileIsDir') -
span(ng-hide='f.mode|fileIsDir') {{f.size|formatFileSize}}
td
span {{f.mtimeMs|formatFileDate}}
td
i {{f.mode|formatPermissionMode}}