Skip to content

Commit

Permalink
Remove night mode options
Browse files Browse the repository at this point in the history
Update GH action runners
Release `v0.0.1`
  • Loading branch information
dormant-user committed Jun 23, 2024
1 parent 5996b02 commit d152c90
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ on:
push:
branches:
- main
# paths-ignore:
# - '.github/**'
paths-ignore:
- '.github/**'

env:
CARGO_TERM_COLOR: always

jobs:
release:
runs-on: self-hosted
runs-on: thevickypedia-lite
permissions:
contents: write
outputs:
Expand Down Expand Up @@ -90,21 +90,24 @@ jobs:
matrix:
platform:
- release_for: Linux-x86_64
os: ubuntu-latest
os: ubuntu-amd64
bin: ${{ needs.release.outputs.bin-name }}
name: ${{ needs.release.outputs.pkg-name }}-Linux-x86_64.tar.gz
name: ${{ needs.release.outputs.pkg-name }}-linux-amd64.tar.gz

- release_for: Windows-x86_64
os: windows-latest
os: windows-amd64
bin: ${{ needs.release.outputs.bin-name }}.exe
name: ${{ needs.release.outputs.pkg-name }}-Windows-x86_64.zip
name: ${{ needs.release.outputs.pkg-name }}-windows-amd64.zip

- release_for: macOS-x86_64
os:
- self-hosted
- Darwin
os: darwin-amd64
bin: ${{ needs.release.outputs.bin-name }}
name: ${{ needs.release.outputs.pkg-name }}-Darwin-x86_64.tar.gz
name: ${{ needs.release.outputs.pkg-name }}-darwin-amd64.tar.gz

- release_for: macOS-arm64
os: darwin-arm64
bin: ${{ needs.release.outputs.bin-name }}
name: ${{ needs.release.outputs.pkg-name }}-darwin-arm64.tar.gz

name: Upload asset for ${{ matrix.platform.release_for }}
if: needs.release.outputs.release-flag == 'true'
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lists3"
version = "0.0.1-a"
description = "Service that creates file browsing capability for S3 buckets"
version = "0.0.1"
description = "Service that creates object listing functionality for S3 buckets"
edition = "2021"
authors = ["Vignesh Rao"]

Expand Down
12 changes: 5 additions & 7 deletions src/templates/list_bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ pub fn get_content() -> String {
<link name="apple-touch-icon" property="og:image" rel="apple-touch-icon" href="https://thevickypedia.github.io/open-source/images/logo/rust.png">
<meta http-equiv="content-type" content="no-cache, no-store, must-revalidate">
<meta http-equiv="refresh" content="no-cache">
<!-- CSS and JS for night mode -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script type="text/javascript" src="https://thevickypedia.github.io/open-source/nightmode/night.js" defer></script>
<link rel="stylesheet" type="text/css" href="https://thevickypedia.github.io/open-source/nightmode/night.css">
<!-- CSS and JS for Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.25/css/dataTables.bootstrap4.min.css">
Expand Down Expand Up @@ -179,6 +175,9 @@ pub fn get_content() -> String {
</script>
<script>
function renderTable(bucketName, regionName, folderNames, ignoreObjects, proxyServer) {
let pretext = document.getElementById('pretext');
pretext.innerHTML = "Amazon S3 Bucket list v2";
const data = getList(bucketName, regionName, folderNames, ignoreObjects, proxyServer);
// Populate table headers
Expand Down Expand Up @@ -249,22 +248,21 @@ pub fn get_content() -> String {
}
</script>
</head>
<body translate="no" onLoad='renderTable(
<body onLoad='renderTable(
bucketName="{{ bucket_name }}",
regionName="{{ region_name }}",
folderNames={{ folder_names }},
ignoreObjects={{ ignore_objects }},
proxyServer="{{ proxy_server }}"
);'>
<pre><small id="pretext"></small></pre>
<div class="corner">
<p id="bucketSize"></p>
<p id="bucketCount"></p>
<p id="filteredSize"></p>
<p id="filterCount"></p>
</div>
<br>
<div class="toggler fa fa-moon-o"></div>
<pre><small>Amazon S3 Bucket list v2</small></pre>
<div class="container mt-5">
<div class="input-group mb-4">
<!--suppress HtmlFormInputWithoutLabel -->
Expand Down
20 changes: 9 additions & 11 deletions src/templates/list_vanilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ pub fn get_content() -> String {
<link name="apple-touch-icon" property="og:image" rel="apple-touch-icon" href="https://thevickypedia.github.io/open-source/images/logo/rust.png">
<meta http-equiv="content-type" content="no-cache, no-store, must-revalidate">
<meta http-equiv="refresh" content="no-cache">
<!-- CSS and JS for night mode -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script type="text/javascript" src="https://thevickypedia.github.io/open-source/nightmode/night.js" defer></script>
<link rel="stylesheet" type="text/css" href="https://thevickypedia.github.io/open-source/nightmode/night.css">
<style>
.corner {
position: absolute;
Expand Down Expand Up @@ -91,6 +87,9 @@ pub fn get_content() -> String {
let http = createRequestObject();
function getList(bucketName, regionName, folderNames, ignoreObjects) {
let pretext = document.getElementById('pretext');
pretext.innerHTML = "Amazon S3 Bucket list v2";
let origin = `http://${bucketName}.s3-${regionName}.amazonaws.com`
let responseType = "application/xml"
let proxy = "{{ proxy_server }}"
Expand Down Expand Up @@ -344,28 +343,27 @@ pub fn get_content() -> String {
}
</style>
</head>
<body translate="no" onLoad='getList(
<body onLoad='getList(
bucketName="{{ bucket_name }}",
regionName="{{ region_name }}",
folderNames={{ folder_names }},
ignoreObjects={{ ignore_objects }}
);'>
<pre><small id="pretext"></small></pre>
<div class="corner">
<p id="bucketSize"></p>
<p id="bucketCount"></p>
<p id="filteredSize"></p>
<p id="filterCount"></p>
</div>
<br>
<div class="toggler fa fa-moon-o"></div>
<pre><small>Amazon S3 Bucket list v2</small></pre>
<table id="bucket_table">
<thead>
<tr>
<th><a href="javascript:getLinkSize()">Size</a></th>
<th><a href="javascript:getLinkLastmod()">Last Modified</a></th>
<th><a href="javascript:getLinkStorage()">Storage Class</a></th>
<th><a href="javascript:getLinkName()">Name</a></th>
<th><a style="color:#FFF" href="javascript:getLinkSize()">Size</a></th>
<th><a style="color:#FFF" href="javascript:getLinkLastmod()">Last Modified</a></th>
<th><a style="color:#FFF" href="javascript:getLinkStorage()">Storage Class</a></th>
<th><a style="color:#FFF" href="javascript:getLinkName()">Name</a></th>
<!--<th><a href="?sort=name&sortdir=asc">Name</a></th>-->
</tr>
</thead>
Expand Down

0 comments on commit d152c90

Please sign in to comment.