Commit 02b1f6ec authored by Сергей Штурнев's avatar Сергей Штурнев

Merge branch 'release/1.0.4'

# Conflicts:
#	package-lock.json
parents eb6dcf4a f0f8bec2
Pipeline #124092812 failed with stages
in 1 minute and 6 seconds
# CHANGELOG
All notable changes to this project will be documented in this file.
## [1.0.4] - 2020-03-07
### Description
Features for clearing and deletion items
### Added
- Deletion media item in opened view
- Clearing selected media items (without deletion from disc)
- Changelog
## [1.0.3] - 2020-03-03
### Description
The application learned to check for a new version
### Added
- Updater - module for check a new version
### Changed
- Reconfigure CI/CD
## [1.0.2] - 2020-01-20
### Description
Small changes. Basically repository settings and CI/CD configurations
### Added
- License (MIT)
### Changed
- New app icon
## [1.0.1] - 2019-10-17
### Description
VR player birthday 🎉
### Added
- View directory as a gallery of media files
- Support VR photo (.jpg)
- Support VR video (.mp4 – up to 4K – limited capacity by Chrome)
- Easy to delete unnecessary media
- Capability to clear accumulated cache
# LET'S TO COLLABORATE
This project is an Open Source under MIT license. You can improve the project if you are:
## DEVELOPER
- Select (or create) a task/issue from our [task board](https://gitlab.com/go-apps-XnjRcS/vr-viewer-for-linux/electron-version/-/boards)
- Fork the Repository
- Create new branch from develop (we use [git flow](https://danielkummer.github.io/git-flow-cheatsheet/index.html) approach).
- For example: feature/task-name
- Push your improvements and create pull-request
## DESIGNER
If you are UI/UX designer please feel free to give us your ideas about how to improve VR-player.
We understand the importance of competent design and how this affects the end user. (I.e. for all of us). If you want to contribute, feel free to send your comments or layouts to the contacts listed on this https://sht-vr-player.cf/ page.
## SPONSOR
If you have a good experience with VR-player for linux and want to say thanks!
You can make a [donation](https://www.liqpay.ua/en/checkout/card/shtvrplayer).
We need your support to pay the costs of server services, ADVERTISING, etc.
This diff is collapsed.
......@@ -5,7 +5,7 @@
*/
export default {
version: "1.0.3",
version: "1.0.4",
checkUpdates: true,
albumId: "08cbdbd1238d321", //It is the id of folder where we storing binaries for install
downloadLink: "https://upfiler.sht-server.cf/#/download/?t=file&h=",
......
......@@ -23,7 +23,7 @@
<div class="op-50 be-a-sponsor">
<a href="" @click.prevent="openExternalLink('https://www.liqpay.ua/en/checkout/shtvrplayer')">
<q-icon color="red" name="favorite" size="md" flat round dense />
<span>Become a sponsor!</span>
<span class="inline-block ml5">Donate!</span>
</a>
</div>
......@@ -109,7 +109,7 @@
&:hover{
transform: scale(1);
filter: grayscale(0);
width: 171px;
width: 93px;
animation: none;
}
}
......
......@@ -13,7 +13,6 @@ export default new Router({
children: [
{
path: '',
name: 'home',
component: Home
},
]
......
/*-----------------------------------
m p w h
-----------------------------------*/
$classes: (
//mt: margin-top,
//mb: margin-bottom,
//mr: margin-right,
ml: margin-left,
//pt: padding-top,
//pb: padding-bottom,
//pr: padding-right,
//pl: padding-left,
//w: width,
//h: height,
);
$i: 0; $s: 5; $max: 100;
@while $i <= $max {
@each $key, $val in $classes{
.#{$key}#{$i}{
#{$val}: $i + px;
}
}
$i: $i + $s;
}
@import "helpers";
//standard colors
$primary : #027BE3;
$secondary : #26A69A;
......@@ -7,8 +9,8 @@ $positive : #21BA45;
$negative : #C10015;
$info : #31CCEC;
$warning : #F2C037;
//custom-colors
//custom-colors
$dark-grey: #212121;
......
......@@ -28,6 +28,10 @@
<q-btn flat round icon="done_all" @click="toggleSelectionAll(!total_selected)">
<q-tooltip>{{total_selected ? 'un' : ''}}select all</q-tooltip>
</q-btn>
<q-btn :disable="total_selected === 0" flat round icon="clear_all" @click="clearSelected()">
<q-tooltip>Clear selected</q-tooltip>
</q-btn>
<q-btn @click="beforeDelete()" :disable="total_selected === 0" flat round icon="delete"/>
<q-btn flat round icon="close" @click="() => {can_select = !can_select; toggleSelectionAll(false) }"/>
</q-card-section>
......@@ -84,7 +88,7 @@
<!--open media item-->
<div class="opened-media-cont column" v-if="Object.keys(showingItem).length">
<Pano :type="showingItem.type" :source="`${static_files_url}big/${showingItem.bigName}`"/>
<Pano :type="showingItem.type" :source="`${static_files_url}big/${showingItem.bigName}`"/>
<div class="head-actions">
<q-btn
@click="showingItem ={}"
......@@ -104,6 +108,9 @@
@click="showItem(items[showingItem.index + 1], showingItem.index + 1)"
size="28px" flat color="grey-7" text-color="grey-4" icon="arrow_forward_ios"/>
</div>
<div class="bottom-actions">
<q-icon @click="beforeDelete(showingItem)" class="btn" name="delete_outline" color="white" size="27px" />
</div>
</div>
<!--settings modal-->
......@@ -133,19 +140,6 @@
</q-item>
</q-list>
<!--<div class="row items-center">
<div>Clear data cache - <b>{{cacheSize}} MB</b></div>
<q-space/>
<q-btn :loading="deleteCacheloading" icon="delete" round size="xs" @click="deleteCache()"/>
</div>
<div class="row items-center">
<div>Check for updates</div>
<q-space/>
<q-btn :loading="deleteCacheloading" icon="delete" round size="xs" @click="deleteCache()"/>
</div>-->
<q-separator class="q-my-md"/>
<div class="text-center">
......@@ -153,15 +147,17 @@
<q-btn @click="openExternalLink('https://www.liqpay.ua/en/checkout/shtvrplayer')">
<q-icon color="red" name="favorite"/>
Became a sponsor!
&nbsp;Donate!
</q-btn>
</div>
<br>
<div class="text-center">
Created by <a class="text-secondary" href=""
@click.prevent="openExternalLink('https://www.facebook.com/sergey.shturnev')">Shturnev
Sergey</a>
Created by
<a class="text-secondary" href=""
@click.prevent="openExternalLink('https://www.facebook.com/sergey.shturnev')">
Shturnev Sergey
</a>
</div>
......@@ -180,7 +176,7 @@
export default {
name: 'PageHome',
name: 'Home',
components: {Pano},
data() {
return {
......@@ -301,15 +297,34 @@
this.$set(this.items[index], 'selected', status)
})
},
beforeDelete() {
clearSelected(){
this.items = this.items.filter(item => !item.selected);
},
beforeDelete(item = null) {
if(item){
this.toggleSelection(item, item.index)
}
this.$q.dialog({
title: 'Delete?',
message: `Would you like to delete this (${this.total_selected}) files?`,
message: `Would you like to delete
${this.total_selected > 1 ? 'these ('+ this.total_selected + ') files': 'this file'}`,
cancel: true,
persistent: true,
dark: true,
color: 'white'
}).onOk(() => {
if(item){
if(this.items[item.index + 1]){
this.showItem(this.items[item.index + 1], item.index + 1)
}else if(this.items[item.index - 1]){
this.showItem(this.items[item.index - 1], item.index - 1)
}else{
this.showingItem = {}
}
}
this.deleteFiles()
})
},
......@@ -330,10 +345,10 @@
data.checkUpdates = !data.checkUpdates;
ipcRenderer.send('save-config', data)
if(data.checkUpdates){
if (data.checkUpdates) {
ipcRenderer.send('check-for-update', null);
}
}
},
},
created() {
......@@ -373,7 +388,7 @@
-----------------------------------*/
ipcRenderer.on('need-to-update', (ev, data) => {
let dlink = this.configData.downloadLink + data.hash;
let ver = data.filename_orig.split("_")[1];
let ver = data.filename_orig.split("_")[1];
this.$q.notify({
message: `<div class="text-subtitle1">New version released <b>v${ver}</b>.</div>
......@@ -390,7 +405,8 @@
}
},
{
label: 'Dismiss', color: 'white', handler: () => {}
label: 'Dismiss', color: 'white', handler: () => {
}
}
]
});
......@@ -496,7 +512,6 @@
}
.opened-media-cont {
//display: flex;
position: fixed;
top: 0;
left: 0;
......@@ -510,6 +525,19 @@
right: 0;
top: 0;
}
&>.bottom-actions{
display: flex;
position: absolute;
bottom: 8px;
right: 97px;
&>.btn{
&:hover{
cursor: pointer;
filter: drop-shadow(white 0 0 5px);
}
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment