0x1eef
9defa1bb47
This change fixes SurahStream.tsx by hosting the durations for the timer locally, within the app, rather than depending on al-quran.reflectslight.io being accessible (eg when offline).
33 lines
538 B
Ruby
33 lines
538 B
Ruby
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
##
|
|
# Contains rules that are related to assets (eg images, fonts, etc)
|
|
|
|
##
|
|
# Fonts
|
|
compile "/fonts/*" do
|
|
write(item.identifier.to_s)
|
|
filter :gzip
|
|
write("#{item.identifier}.gz")
|
|
end
|
|
|
|
##
|
|
# Images
|
|
compile "/images/*.svg" do
|
|
write(item.identifier.to_s)
|
|
filter :gzip
|
|
write("#{item.identifier}.gz")
|
|
end
|
|
|
|
compile "/favicon.png" do
|
|
write(item.identifier.to_s)
|
|
end
|
|
|
|
compile "/images/opengraph/*.png" do
|
|
write(item.identifier.to_s)
|
|
end
|
|
|
|
##
|
|
# JSON
|
|
passthrough "/durations/*/*.json"
|