Skip to content

Commit 80d2997

Browse files
committed
Some changes
1 parent 5f55011 commit 80d2997

File tree

14 files changed

+3124
-318
lines changed

14 files changed

+3124
-318
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"livePreview.defaultPreviewPath": "/html/package-info.html"
2+
"livePreview.defaultPreviewPath": "/html/search-results.html"
33
}

usr/share/bigbashview/apps/bigstore/config_manager.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

usr/share/bigbashview/apps/bigstore/find_icon.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ if [[ $type = pacman ]]; then
1515
exit
1616
fi
1717

18+
# grep -Ei '[0-9]?big.(.*)' teste.txt
19+
20+
# bruno=$(lspci --version | grep -i '[0-9]?big.(.*)' teste.txt)
21+
22+
1823
# Check if a specific file exists
1924
if [[ -e /usr/share/swcatalog/icons/archlinux-arch-extra/64x64/$query\_$query.png ]]; then
2025
# Print an HTML image tag with the source attribute set to the specific file path

usr/share/bigbashview/apps/bigstore/html/package-info.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<div class="package-results-modal">
1313
<!-- Left bar in results with different color by package type -->
1414
<div class="left-bar-package-results-modal center-align" :class="{
15-
'bgcolor-pkg-aur': pkgInfo.t === 'a',
16-
'bgcolor-pkg-native': pkgInfo.t === 'p',
17-
'bgcolor-pkg-flatpak': pkgInfo.t === 'f',
18-
'bgcolor-pkg-snap': pkgInfo.t === 's',
19-
'bgcolor-pkg-web': pkgInfo.t === 'w'}">
15+
'pkg-aur-color': pkgInfo.t === 'a',
16+
'pkg-native-color': pkgInfo.t === 'p',
17+
'pkg-flatpak-color': pkgInfo.t === 'f',
18+
'pkg-snap-color': pkgInfo.t === 's',
19+
'pkg-web-color': pkgInfo.t === 'w'}">
2020

2121
<!-- Item Icon -->
2222
<div class="small-padding" x-bind:x-on:show="fetchIcon(item)" x-html="pkgInfo.iconHTML">
@@ -30,7 +30,7 @@
3030
<nav>
3131

3232
<template x-if="pkgInfo.u != null && pkgInfo.u !== ''">
33-
<button @click="toggleMarkForAction(pkgInfo, 'update')" class="package-results-button-format-modal tertiary wave orange9">
33+
<button @click="toggleMarkForAction(pkgInfo, 'update')" class="package-results-button-format-modal update-button-color wave">
3434
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(pkgInfo, 'update')}" x-text="isMarkedForAction(pkgInfo, 'update') ? 'check' : 'update'"></i><br>
3535
<span stonejs>Update</span>
3636
</button>
@@ -42,14 +42,14 @@
4242
<nav>
4343

4444
<template x-if="pkgInfo.i === 'true'">
45-
<button @click="toggleMarkForAction(pkgInfo, 'removal')" class="package-results-button-format-modal tertiary wave red9">
45+
<button @click="toggleMarkForAction(pkgInfo, 'removal')" class="package-results-button-format-modal remove-button-color wave ">
4646
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(pkgInfo, 'removal')}" x-text="isMarkedForAction(pkgInfo, 'removal') ? 'check' : 'delete'"></i><br>
4747
<span stonejs>Remove</span>
4848
</button>
4949
</template>
5050

5151
<template x-if="pkgInfo.i !== 'true'">
52-
<button @click="toggleMarkForAction(pkgInfo, 'install')" class="package-results-button-format-modal tertiary wave green8">
52+
<button @click="toggleMarkForAction(pkgInfo, 'install')" class="package-results-button-format-modal install-button-color wave">
5353
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(pkgInfo, 'install')}" x-text="isMarkedForAction(pkgInfo, 'install') ? 'check' : 'download'"></i><br>
5454
<span stonejs>Install</span>
5555
</button>

usr/share/bigbashview/apps/bigstore/html/packages-selected.html

Lines changed: 69 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,53 +5,72 @@
55
as its repository, name, architecture, URL, licenses, groups, dependencies, conflicts, download size,
66
installed size, packager, build date, and checksums. The dialog includes a close button to dismiss it. -->
77

8-
<div class="overlay" id="overlaySelected"></div>
9-
<dialog id="pkgselected" class="middle center no-padding">
10-
11-
<a class="close-modal-icon right small-padding" data-ui="#pkgselected"
12-
x-on:click="showPkgInfoModal = false;"><i>close</i></a>
13-
14-
15-
<div class="medium-space" x-show="markedForInstall.length > 0">
16-
<table class="stripes no-space">
17-
<!-- <thead>
18-
<tr>
19-
<th>Header</th>
20-
<th>Header</th>
21-
<th>Header</th>
22-
</tr>
23-
</thead> -->
24-
<tbody>
25-
<!-- Exibe itens do tipo Nativo -->
26-
<template x-for="item in markedForInstall.filter(item => item.type === 'p')">
27-
<tr>
28-
<td x-html="packageFormat(item.type)"></td>
29-
<td x-text="item.p"></td>
30-
</tr>
31-
</template>
32-
<!-- Exibe itens do tipo AUR -->
33-
<template x-for="item in markedForInstall.filter(item => item.type === 'a')">
34-
<tr>
35-
<td>AUR</td>
36-
<td x-text="item.p"></td>
37-
</tr>
38-
</template>
39-
<!-- Exibe itens do tipo Flatpak -->
40-
<template x-for="item in markedForInstall.filter(item => item.type === 'f')">
41-
<tr>
42-
<td>Flatpak</td>
43-
<td x-text="item.p"></td>
44-
</tr>
45-
</template>
46-
<!-- Exibe itens do tipo Snap -->
47-
<template x-for="item in markedForInstall.filter(item => item.type === 's')">
48-
<tr>
49-
<td>Snap</td>
50-
<td x-text="item.p"></td>
51-
</tr>
52-
</template>
53-
</tbody>
54-
</table>
55-
</div>
56-
<!-- Display package information -->
57-
</dialog>
8+
<div class="overlay" id="overlaySelected"></div>
9+
<dialog id="pkgselected" class="middle center no-padding">
10+
<a class="close-modal-icon right small-padding" data-ui="#pkgselected" x-on:click="showPkgInfoModal = false;">
11+
<i>close</i>
12+
</a>
13+
<h5 class="center-align" stonejs>Alterações marcadas</h5>
14+
<!-- Pacotes a serem removidos -->
15+
<template x-if="markedForRemoval.length > 0">
16+
<div>
17+
<div class="table-title-remove" stonejs>Remover</div>
18+
<table class="table table-striped border-left-remove">
19+
<tbody>
20+
<template x-for="(item, index) in markedForRemoval" :key="`${item.p}-${item.type}`">
21+
<tr>
22+
<td x-text="item.p"></td>
23+
<td x-text="item.v"></td>
24+
<td class="result-pkg-style" :class="{ 'show-text': index === 0 || item.type !== markedForRemoval[index - 1].type, 'pkg-native-color': item.type === 'p', 'pkg-aur-color': item.type === 'a', 'pkg-flatpak-color': item.type === 'f', 'pkg-snap-color': item.type === 's' }">
25+
<div x-text="getPackageTypeName(item.type)"></div>
26+
</td>
27+
</tr>
28+
</template>
29+
</tbody>
30+
</table>
31+
</div>
32+
</template>
33+
34+
<!-- Pacotes a serem instalados -->
35+
<template x-if="markedForInstall.length > 0">
36+
<div>
37+
<div class="table-title-install" stonejs>Instalar</div>
38+
<table class="table table-striped border-left-install">
39+
<tbody>
40+
<template x-for="(item, index) in markedForInstall" :key="`${item.p}-${item.type}`">
41+
<tr>
42+
<td x-text="item.p"></td>
43+
<td x-text="item.v"></td>
44+
<td :class="{ 'show-text': index === 0 || item.type !== markedForInstall[index - 1].type, 'pkg-native-color': item.type === 'p', 'pkg-aur-color': item.type === 'a', 'pkg-flatpak-color': item.type === 'f', 'pkg-snap-color': item.type === 's' }">
45+
<div x-text="getPackageTypeName(item.type)"></div>
46+
</td>
47+
</tr>
48+
</template>
49+
</tbody>
50+
</table>
51+
</div>
52+
</template>
53+
54+
<!-- Pacotes a serem atualizados -->
55+
<template x-if="markedForUpdate.length > 0">
56+
<div>
57+
<div class="table-title-update" stonejs>Atualizar</div>
58+
<table class="table table-striped border-left-update">
59+
<tbody>
60+
<template x-for="(item, index) in markedForUpdate" :key="`${item.p}-${item.type}`">
61+
<tr>
62+
<td x-text="item.p"></td>
63+
<td x-text="item.v"></td>
64+
<td :class="{ 'show-text': index === 0 || item.type !== markedForUpdate[index - 1].type, 'pkg-native-color': item.type === 'p', 'pkg-aur-color': item.type === 'a', 'pkg-flatpak-color': item.type === 'f', 'pkg-snap-color': item.type === 's' }">
65+
<div x-text="getPackageTypeName(item.type)"></div>
66+
</td>
67+
</tr>
68+
</template>
69+
</tbody>
70+
</table>
71+
</div>
72+
</template>
73+
74+
<!-- Display package information -->
75+
</dialog>
76+

usr/share/bigbashview/apps/bigstore/html/search-results copy.html

Lines changed: 0 additions & 101 deletions
This file was deleted.

usr/share/bigbashview/apps/bigstore/html/search-results.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
<!-- Left bar in results with different color by package type -->
1515
<div class="left-bar-package-results center-align" :class="{
16-
'bgcolor-pkg-aur': item.t === 'a',
17-
'bgcolor-pkg-native': item.t === 'p',
18-
'bgcolor-pkg-flatpak': item.t === 'f',
19-
'bgcolor-pkg-snap': item.t === 's',
20-
'bgcolor-pkg-web': item.t === 'w'}">
16+
'pkg-aur-color': item.t === 'a',
17+
'pkg-native-color': item.t === 'p',
18+
'pkg-flatpak-color': item.t === 'f',
19+
'pkg-snap-color': item.t === 's',
20+
'pkg-web-color': item.t === 'w'}">
2121

2222
<!-- Item Icon -->
2323
<div class="package-results-icon cursor-zoom-in" x-intersect="fetchIcon(item)" x-html="item.iconHTML" @click="showModal(item);" data-ui="#pkginfo">
@@ -30,21 +30,21 @@
3030
<div class="package-results-button">
3131
<nav>
3232
<template x-if="item.i !== 'true'">
33-
<button @click="toggleMarkForAction(item, 'install')" class="package-results-button-format tertiary wave green8">
33+
<button @click="toggleMarkForAction(item, 'install')" class="package-results-button-format install-button-color wave ">
3434
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(item, 'install')}" x-text="isMarkedForAction(item, 'install') ? 'check' : 'download'"></i><br>
3535
<span>Install</span>
3636
</button>
3737
</template>
3838

3939
<template x-if="item.i === 'true' && item.u == ''">
40-
<button @click="toggleMarkForAction(item, 'removal')" class="package-results-button-format tertiary wave red7">
40+
<button @click="toggleMarkForAction(item, 'removal')" class="package-results-button-format remove-button-color wave">
4141
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(item, 'removal')}" x-text="isMarkedForAction(item, 'removal') ? 'check' : 'delete'"></i><br>
4242
<span>Remove</span>
4343
</button>
4444
</template>
4545

4646
<template x-if="item.u != null && item.u !== ''">
47-
<button @click="toggleMarkForAction(item, 'update')" class="package-results-button-format tertiary wave orange9">
47+
<button @click="toggleMarkForAction(item, 'update')" class="package-results-button-format update-button-color wave ">
4848
<i :class="{'transition-icon': true, 'rotate-icon': isMarkedForAction(item, 'update')}" x-text="isMarkedForAction(item, 'update') ? 'check' : 'update'"></i><br>
4949
<span>Update</span>
5050
</button>

0 commit comments

Comments
 (0)