Skip to content

Commit

Permalink
downloaded nd assets to better optimize them
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffSpies committed Sep 2, 2021
1 parent 9196122 commit 6ecc269
Show file tree
Hide file tree
Showing 82 changed files with 166 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ prod: $(BUILD_TEMPLATES_DIR) $(BUILD_SPA_DIR) docker

.PHONY: certs
certs: prod
@bash ./build/templates/letsencrypt/init-letsencrypt.sh
@bash $(BUILD_TEMPLATES_DIR)/letsencrypt/init-letsencrypt.sh

.PHONY: ssh
ssh:
Expand Down
32 changes: 32 additions & 0 deletions client/generateUrls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

output=src/statics/edu.nd
url_re='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]\.[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
# rel_re='[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]\.[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]'
regex1="^.*url\([\'\"]{0,1}($url_re)[\'\"]{0,1}\).*$"
# regex2="^.*url\([\'\"]{0,1}(\/$rel_re)[\'\"]{0,1}\).*"

wget --mirror -P "${output}" https://conductor.nd.edu/stylesheets/themes/ndt/v3/ndt.css

while read line
do
if [[ $line =~ $regex1 ]]
then
# echo ${BASH_REMATCH[1]} $line
wget -q --mirror -P "${output}" "${BASH_REMATCH[1]}"
fi
# if [[ $line =~ $regex2 ]]
# then
# wget --mirror -P src/statics/edu.nd/conductor.nd.edu "https://conductor.nd.edu${BASH_REMATCH[1]}"
# fi
done < "./src/statics/edu.nd/conductor.nd.edu/stylesheets/themes/ndt/v3/ndt.css"


# Replace
# url('/
# url('/statics/edu.nd/conductor.nd.edu/

# Replace
# url('https://
# url('/statics/edu.nd/

2 changes: 1 addition & 1 deletion client/src/pages/PublicLanding.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
</template>

<style scoped>
@import 'https://conductor.nd.edu/stylesheets/themes/ndt/v3/ndt.css';
@import '../statics/edu.nd/conductor.nd.edu/stylesheets/themes/ndt/v3/ndt.css';
@import '../statics/ndweb/stylesheets/site.css';
p.page-image img {
border: 1px #e6e6e6 solid;
Expand Down
9 changes: 9 additions & 0 deletions client/src/statics/edu.nd/conductor.nd.edu/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
User-agent: *
Disallow: /news/archives/
Disallow: /news/category/
Disallow: /styles/
Disallow: /admin/
Disallow: /news/*/amp/

User-agent: Googlebot
Allow: /news/*/amp/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6ecc269

Please sign in to comment.