Skip to content

Commit

Permalink
deploy: 197cc1d
Browse files Browse the repository at this point in the history
  • Loading branch information
gucci-on-fleek committed Sep 7, 2024
1 parent d72a18b commit 532f93d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ minify_html () {
}

minify_xml () {
if [ "$1" = "=items-to-tsv.xslt" ]; then
return
fi
command minify --type=xml -o dist/"$1" src/"$1"
}

Expand Down
3 changes: 2 additions & 1 deletion dist/items-to-tsv.xslt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text" encoding="utf-8"/><xsl:variable name="_col_sep">x</xsl:variable><xsl:variable name="col_sep" select="substring($_col_sep, 2)"/><xsl:variable name="_row_sep">x</xsl:variable><xsl:variable name="row_sep" select="substring($_row_sep, 2)"/><xsl:template match="/items"><xsl:value-of select="concat('Item Name', $col_sep)"/><xsl:value-of select="concat('Quality', $col_sep)"/><xsl:value-of select="concat('Price', $col_sep)"/><xsl:value-of select="concat('Count', $col_sep)"/><xsl:value-of select="concat('Stored in', $col_sep)"/><xsl:value-of select="concat('Stack Price', $row_sep)"/><xsl:for-each select="item"><xsl:sort select="actual_price * count" data-type="number" order="descending"/><xsl:value-of select="concat(normalize-space(name), $col_sep)"/><xsl:choose><xsl:when test="quality"><xsl:value-of select="concat(quality, $col_sep)"/></xsl:when><xsl:otherwise><xsl:value-of select="$col_sep"/></xsl:otherwise></xsl:choose><xsl:value-of select="concat(normalize-space(actual_price), $col_sep)"/><xsl:value-of select="concat(normalize-space(count), $col_sep)"/><xsl:choose><xsl:when test="contained_in/type = 'Player'"><xsl:value-of select="concat('Player (', normalize-space(contained_in/description), ')', $col_sep)"/></xsl:when><xsl:when test="contained_in/description"><xsl:value-of select="concat(normalize-space(contained_in/description), ' ', normalize-space(contained_in/type), ' (', normalize-space(contained_in/location), ')', $col_sep)"/></xsl:when><xsl:when test="contained_in/type = contained_in/location"><xsl:value-of select="concat(normalize-space(contained_in/type), $col_sep)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(normalize-space(contained_in/type), ' (', normalize-space(contained_in/location), ')', $col_sep)"/></xsl:otherwise></xsl:choose><xsl:value-of select="concat(actual_price * count, $row_sep)"/></xsl:for-each></xsl:template></xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text" encoding="utf-8"/><xsl:variable name="col_sep" select="' '"/><xsl:variable name="col_sep" select="'
'"/><xsl:template match="/items"><xsl:value-of select="concat('Item Name', $col_sep)"/><xsl:value-of select="concat('Quality', $col_sep)"/><xsl:value-of select="concat('Price', $col_sep)"/><xsl:value-of select="concat('Count', $col_sep)"/><xsl:value-of select="concat('Stored in', $col_sep)"/><xsl:value-of select="concat('Stack Price', $row_sep)"/><xsl:for-each select="item"><xsl:sort select="actual_price * count" data-type="number" order="descending"/><xsl:value-of select="concat(normalize-space(name), $col_sep)"/><xsl:choose><xsl:when test="quality"><xsl:value-of select="concat(quality, $col_sep)"/></xsl:when><xsl:otherwise><xsl:value-of select="$col_sep"/></xsl:otherwise></xsl:choose><xsl:value-of select="concat(normalize-space(actual_price), $col_sep)"/><xsl:value-of select="concat(normalize-space(count), $col_sep)"/><xsl:choose><xsl:when test="contained_in/type = 'Player'"><xsl:value-of select="concat('Player (', normalize-space(contained_in/description), ')', $col_sep)"/></xsl:when><xsl:when test="contained_in/description"><xsl:value-of select="concat(normalize-space(contained_in/description), ' ', normalize-space(contained_in/type), ' (', normalize-space(contained_in/location), ')', $col_sep)"/></xsl:when><xsl:when test="contained_in/type = contained_in/location"><xsl:value-of select="concat(normalize-space(contained_in/type), $col_sep)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(normalize-space(contained_in/type), ' (', normalize-space(contained_in/location), ')', $col_sep)"/></xsl:otherwise></xsl:choose><xsl:value-of select="concat(actual_price * count, $row_sep)"/></xsl:for-each></xsl:template></xsl:stylesheet>
2 changes: 1 addition & 1 deletion service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions src/items-to-tsv.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
SPDX-FileCopyrightText: 2024 Max Chernoff
-->
<xsl:output method="text" encoding="utf-8" />

<xsl:variable name="_col_sep">x<![CDATA[ ]]></xsl:variable>
<xsl:variable name="col_sep" select="substring($_col_sep, 2)" />
<xsl:variable name="_row_sep">x<![CDATA[
]]></xsl:variable>
<xsl:variable name="row_sep" select="substring($_row_sep, 2)" />
<xsl:variable name="col_sep" select="'&#x9;'" />
<xsl:variable name="col_sep" select="'&#xA;'" />

<xsl:template match="/items">
<xsl:value-of select="concat('Item Name', $col_sep)" />
Expand Down
2 changes: 1 addition & 1 deletion src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* SPDX-FileCopyrightText: 2022 Max Chernoff
*/

const version="10747687904"
const version="10748345855"
const cache_name = `stardew-valley-item-finder-v${version}`
const cache = caches.open(cache_name)
const requests = [
Expand Down

0 comments on commit 532f93d

Please sign in to comment.