Skip to content

Commit

Permalink
chore: update web cdn to use cloudflare instead of bunny
Browse files Browse the repository at this point in the history
  • Loading branch information
CaramelKat committed Jul 29, 2024
1 parent 8f66cf0 commit 9c09804
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 47 deletions.
2 changes: 1 addition & 1 deletion src/webfiles/web/all_communities.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="popular" class="communities-wrapper">
<% for(var i = 0; i < communities.length; i++) {%>
<a class="community-list-wrapper" href="/titles/<%= communities[i].olive_community_id %>/new">
<img class="community-list-icon" src="https://pretendo-cdn.b-cdn.net/icons/<%= communities[i].olive_community_id %>/128.png">
<img class="community-list-icon" src="https://cdn.pretendo.cc/icons/<%= communities[i].olive_community_id %>/128.png">
<h2 class="community-list-title"><%= communities[i].name %></h2>
<h4 class="community-list-followers"><%= communities[i].followers %> followers</h4>
</a>
Expand Down
4 changes: 2 additions & 2 deletions src/webfiles/web/communities.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="popular" class="communities-wrapper">
<% for(var i = 0; i < popularCommunities.length; i++) {%>
<a class="community-list-wrapper" href="/titles/<%= popularCommunities[i].olive_community_id %>/new">
<img class="community-list-icon" src="https://pretendo-cdn.b-cdn.net/icons/<%= popularCommunities[i].olive_community_id %>/128.png">
<img class="community-list-icon" src="https://cdn.pretendo.cc/icons/<%= popularCommunities[i].olive_community_id %>/128.png">
<h2 class="community-list-title"><%= popularCommunities[i].name %></h2>
<h4 class="community-list-followers"><%= popularCommunities[i].followers %> followers</h4>
</a>
Expand All @@ -22,7 +22,7 @@
<div id="new" class="communities-wrapper">
<% for(var j = 0; j < newCommunities.length; j++) {%>
<a class="community-list-wrapper" href="/titles/<%= newCommunities[j].olive_community_id %>/new">
<img class="community-list-icon" src="https://pretendo-cdn.b-cdn.net/icons/<%= newCommunities[j].olive_community_id %>/128.png">
<img class="community-list-icon" src="https://cdn.pretendo.cc/icons/<%= newCommunities[j].olive_community_id %>/128.png">
<h2 class="community-list-title"><%= newCommunities[j].name %></h2>
<h4 class="community-list-followers"><%= newCommunities[j].followers %> followers</h4>
</a>
Expand Down
10 changes: 5 additions & 5 deletions src/webfiles/web/community.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Juxt - <%= community.name %>">
<meta itemprop="description" content="<%= community.description %>">
<meta itemprop="image" content="https://pretendo-cdn.b-cdn.net/icons/<%= community.olive_community_id %>/128.png">
<meta itemprop="image" content="https://cdn.pretendo.cc/icons/<%= community.olive_community_id %>/128.png">

<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Juxt - <%= community.name %>"/>
<meta property="og:description" content="<%= community.description %>"/>
<meta property="og:url" content="https://juxt.pretendo.cc/communities/<%= community.olive_community_id %>/new"/>
<meta property="og:image" content="https://pretendo-cdn.b-cdn.net/icons/<%= community.olive_community_id %>/128.png"/>
<meta property="og:image" content="https://cdn.pretendo.cc/icons/<%= community.olive_community_id %>/128.png"/>
<meta property="og:site_name" content="Juxtaposition" />

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="Juxt - <%= community.name %>"/>
<meta name="twitter:description" content="<%= community.description %>"/>
<meta name="twitter:site" content="@PretendoNetwork"/>
<meta name="twitter:image" content="https://pretendo-cdn.b-cdn.net/icons/<%= community.olive_community_id %>/128.png"/>
<meta name="twitter:image" content="https://cdn.pretendo.cc/icons/<%= community.olive_community_id %>/128.png"/>
<meta name="twitter:creator" content="@PretendoNetwork"/>

</head>
Expand All @@ -30,9 +30,9 @@
<div id="toast"></div>
<div id="wrapper" class="community-page-post-box">
<div class="community-top">
<img class="banner" src="https://pretendo-cdn.b-cdn.net/headers/<%= community.parent ? community.parent : community.olive_community_id %>/WiiU.png"/>
<img class="banner" src="https://cdn.pretendo.cc/headers/<%= community.parent ? community.parent : community.olive_community_id %>/WiiU.png"/>
<div class="community-info">
<img class="user-icon" src="https://pretendo-cdn.b-cdn.net/icons/<%= community.parent ? community.parent : community.olive_community_id %>/128.png"/>
<img class="user-icon" src="https://cdn.pretendo.cc/icons/<%= community.parent ? community.parent : community.olive_community_id %>/128.png"/>
<h2 class="community-title"><%= community.name %></h2>
<%if(community.permissions.open){%>
<% var following = userContent.followed_communities.indexOf(community.olive_community_id) !== -1; %>
Expand Down
6 changes: 3 additions & 3 deletions src/webfiles/web/edit_community.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@
<input type="file" id="browserIcon" accept="image/jpg" name="browserIcon">
</div>
<div class="col-md-3">
<img src="https://pretendo-cdn.b-cdn.net/icons/<%= community.parent ? community.parent : community.olive_community_id %>/128.png" id="browserIconPreview">
<img src="https://cdn.pretendo.cc/icons/<%= community.parent ? community.parent : community.olive_community_id %>/128.png" id="browserIconPreview">
</div>
<div class="col-md-3">
<label class="labels" for="CTRbrowserHeader">3DS Browser Banner (400px x 220px)</label>
<input type="file" id="CTRbrowserHeader" accept="image/jpg" name="CTRbrowserHeader">
</div>
<div class="col-md-3">
<img src="https://pretendo-cdn.b-cdn.net/headers/<%= community.parent ? community.parent : community.olive_community_id %>/3DS.png" id="CTRbrowserHeaderPreview">
<img src="https://cdn.pretendo.cc/headers/<%= community.parent ? community.parent : community.olive_community_id %>/3DS.png" id="CTRbrowserHeaderPreview">
</div>
<div class="col-md-3">
<label class="labels" for="WiiUbrowserHeader">Wii U Browser Banner (1280px x 180px)</label>
<input type="file" id="WiiUbrowserHeader" accept="image/jpg" name="WiiUbrowserHeader">
</div>
<div class="col-md-3">
<img src="https://pretendo-cdn.b-cdn.net/headers/<%= community.parent ? community.parent : community.olive_community_id %>/WiiU.png" id="WiiUbrowserHeaderPreview">
<img src="https://cdn.pretendo.cc/headers/<%= community.parent ? community.parent : community.olive_community_id %>/WiiU.png" id="WiiUbrowserHeaderPreview">
</div>
<div class="col-md-4">
<label class="labels" for="parent">Parent Community ID:</label>
Expand Down
2 changes: 1 addition & 1 deletion src/webfiles/web/manage_communities.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<li>
<div class="hover">
<a href="/communities/<%= community.olive_community_id %>" data-pjax="#body" class="icon-container notify">
<img src="https://pretendo-cdn.b-cdn.net/icons/<%= community.olive_community_id %>/128.png" class="icon">
<img src="https://cdn.pretendo.cc/icons/<%= community.olive_community_id %>/128.png" class="icon">
</a>
<a class="body" href="/communities/<%= community.olive_community_id %>">
<span class="text"><span class="nick-name"><%= community.name %></span>
Expand Down
8 changes: 4 additions & 4 deletions src/webfiles/web/me_page.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Juxt - <%= pnid.mii.name %>">
<%if(userSettings.profile_comment_visibility){%><meta itemprop="description" content="<%= userSettings.profile_comment %>"> <%}%>
<meta itemprop="image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png">
<meta itemprop="image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png">

<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Juxt - <%= pnid.mii.name %>"/>
<%if(userSettings.profile_comment_visibility){%><meta property="og:description" content="<%= userSettings.profile_comment %>"/><%}%>
<meta property="og:url" content="https://juxt.pretendo.cc/users/show?pid=<%= userSettings.pid %>"/>
<meta property="og:image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta property="og:image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta property="og:site_name" content="Juxtaposition" />

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="Juxt - <%= pnid.mii.name %>"/>
<%if(userSettings.profile_comment_visibility){%><meta name="twitter:description" content="<%= userSettings.profile_comment %>"/><%}%>
<meta name="twitter:site" content="@PretendoNetwork"/>
<meta name="twitter:image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta name="twitter:image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta name="twitter:creator" content="@PretendoNetwork"/>

</head>
Expand All @@ -31,7 +31,7 @@
<div id="wrapper">
<div class="community-top">
<div class="community-info">
<img class="user-icon <%if(pnid.access_level >= 2) {%>verified<%}%>" src="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/normal_face.png">
<img class="user-icon <%if(pnid.access_level >= 2) {%>verified<%}%>" src="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/normal_face.png">
<h2 class="community-title"><%= pnid.mii.name %> (<%= pnid.username %>)<span class="verified-badge" style="<%if(!pnid.access_level >= 2) {%>display: none;<%}%>">✓</span></h2>
</div>
<h4 class="community-description"><%if(userSettings.profile_comment_visibility){%> <%= userSettings.profile_comment %> <%}else {%><%= lang.global.private %><%}%></h4>
Expand Down
6 changes: 3 additions & 3 deletions src/webfiles/web/message_thread.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
<% messages.forEach(function(message) { %>
<div id="message-<%= message.id %>" class="post scroll <%if(message.pid === pid) {%>my-post<%} else {%>other-post<%}%>">
<a href="/users/show?pid=<%= message.pid %>" data-pjax="#body" class="scroll-focus mii-icon-container">
<img src="https://pretendo-cdn.b-cdn.net<%= message.mii_face_url.substring(message.mii_face_url.lastIndexOf('/mii')) %>" class="mii-icon">
<img src="https://cdn.pretendo.cc<%= message.mii_face_url.substring(message.mii_face_url.lastIndexOf('/mii')) %>" class="mii-icon">
</a>
<div class="post-body">
<%if(message.screenshot) {%>
<img class="message-viewer-bubble-sent-screenshot" src="https://pretendo-cdn.b-cdn.net<%= message.screenshot %>">
<img class="message-viewer-bubble-sent-screenshot" src="https://cdn.pretendo.cc<%= message.screenshot %>">
<%}%>
<%if(message.painting) {%>
<img class="message-viewer-bubble-sent-memo" src="https://pretendo-cdn.b-cdn.net/paintings/<%=message.pid%>/<%=message.id%>.png">
<img class="message-viewer-bubble-sent-memo" src="https://cdn.pretendo.cc/paintings/<%=message.pid%>/<%=message.id%>.png">
<%}else {%>
<p class="post-content"><%= message.body %></p>
<%}%>
Expand Down
2 changes: 1 addition & 1 deletion src/webfiles/web/messages.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<li>
<div class="hover">
<a href="/users/<%= userObj.pid %>" data-pjax="#body" class="icon-container notify">
<img src="https://pretendo-cdn.b-cdn.net/mii/<%= userObj.pid %>/normal_face.png" class="icon">
<img src="https://cdn.pretendo.cc/mii/<%= userObj.pid %>/normal_face.png" class="icon">
</a>
<a class="body messages" href="/friend_messages/<%= conversation.id %>">
<span class="text">
Expand Down
8 changes: 4 additions & 4 deletions src/webfiles/web/moderate_user.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<!-- Google / Search Engine Tags -->
<meta itemprop="name" content="Juxt - <%= pnid.mii.name %>">
<%if(userSettings.profile_comment_visibility){%><meta itemprop="description" content="<%= userSettings.profile_comment%>"> <%}%>
<meta itemprop="image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png">
<meta itemprop="image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png">

<!-- Open Graph Meta Tags -->
<meta property="og:title" content="Juxt - <%= pnid.mii.name %>"/>
<%if(userSettings.profile_comment_visibility){%><meta property="og:description" content="<%= userSettings.profile_comment%>"/><%}%>
<meta property="og:url" content="https://juxt.pretendo.network/users/<%= userSettings.pid %>"/>
<meta property="og:image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta property="og:image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta property="og:site_name" content="Juxtaposition"/>

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="Juxt - <%= pnid.mii.name %>"/>
<%if(userSettings.profile_comment_visibility){%><meta name="twitter:description" content="<%= userSettings.profile_comment%>"/><%}%>
<meta name="twitter:site" content="@PretendoNetwork"/>
<meta name="twitter:image" content="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta name="twitter:image" content="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/smile_open_mouth.png"/>
<meta name="twitter:creator" content="@PretendoNetwork"/>

</head>
Expand All @@ -32,7 +32,7 @@
<div class="community-top">
<img class="banner" src="https://juxt-web-cdn.b-cdn.net/images/banner.png" alt="">
<div class="community-info">
<img class="user-icon <%if(pnid.accessLevel > 2) {%>verified<%}%>" src="https://pretendo-cdn.b-cdn.net/mii/<%= userSettings.pid %>/normal_face.png">
<img class="user-icon <%if(pnid.accessLevel > 2) {%>verified<%}%>" src="https://cdn.pretendo.cc/mii/<%= userSettings.pid %>/normal_face.png">
<h2 class="community-title"><%= pnid.mii.name %> @<%= pnid.username %><%if(pnid.accessLevel >= 2) {%><span class="verified-badge"></span><%}%></h2>
</div>
<h4 class="community-description">
Expand Down
4 changes: 2 additions & 2 deletions src/webfiles/web/partials/following_list.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<li id="<%= user.pid %>">
<div class="hover">
<a href="/users/<%= user.pid %>" data-pjax="#body" class="icon-container notify">
<img src="https://pretendo-cdn.b-cdn.net/mii/<%= user.pid %>/normal_face.png" class="icon">
<img src="https://cdn.pretendo.cc/mii/<%= user.pid %>/normal_face.png" class="icon">
</a>
<a class="body" href="/users/<%= user.pid %>">
<span class="text"><span class="nick-name"><%= user.screen_name %></span>
Expand All @@ -16,7 +16,7 @@
<li id="<%= community %>">
<div class="hover">
<a href="/titles/<%= community %>/new" data-pjax="#body" class="icon-container notify">
<img src="https://pretendo-cdn.b-cdn.net/icons/<%= community %>/128.png" class="icon">
<img src="https://cdn.pretendo.cc/icons/<%= community %>/128.png" class="icon">
</a>
<a class="body" href="/titles/<%= community %>/new">
<span class="text"><span class="nick-name"><%= bundle.communityMap.get(community) %></span>
Expand Down
2 changes: 1 addition & 1 deletion src/webfiles/web/partials/nav_bar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</a>
<%if(pid !== 1000000000) {%>
<a href="/users/me" <% if(selection === 0) {%>class="selected"<%}%>>
<img class="mii-icon" src="https://pretendo-cdn.b-cdn.net/mii/<%=pid%>/normal_face.png" alt="User Page">
<img class="mii-icon" src="https://cdn.pretendo.cc/mii/<%=pid%>/normal_face.png" alt="User Page">
<p><%= lang.global.user_page %></p>
</a>
<a href="/feed" <% if(selection === 1) {%>class="selected"<%}%>>
Expand Down
14 changes: 7 additions & 7 deletions src/webfiles/web/partials/new_post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
<input type="hidden" name="community_id" value="<%= id %>"/>
<div class="add-post-page-content">
<div class="feeling-selector expression">
<img src="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/normal_face.png" id="mii-face" class="icon">
<img src="https://cdn.pretendo.cc/mii/<%= pid %>/normal_face.png" id="mii-face" class="icon">
<ul class="buttons">
<li><input type="radio" name="feeling_id" value="0" class="feeling-button-normal"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/normal_face.png" checked
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/normal_face.png" checked
data-sound="SE_WAVE_MII_FACE_00">
</li>
<li>
<input type="radio" name="feeling_id" value="1" class="feeling-button-happy"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/smile_open_mouth.png"
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/smile_open_mouth.png"
data-sound="SE_WAVE_MII_FACE_01">
</li>
<li>
<input type="radio" name="feeling_id" value="2" class="feeling-button-like"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/wink_left.png"
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/wink_left.png"
data-sound="SE_WAVE_MII_FACE_02">
</li>
<li>
<input type="radio" name="feeling_id" value="3" class="feeling-button-surprised"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/surprise_open_mouth.png"
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/surprise_open_mouth.png"
data-sound="SE_WAVE_MII_FACE_03">
</li>
<li>
<input type="radio" name="feeling_id" value="4" class="feeling-button-frustrated"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/frustrated.png"
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/frustrated.png"
data-sound="SE_WAVE_MII_FACE_04">
</li>
<li>
<input type="radio" name="feeling_id" value="5" class="feeling-button-puzzled"
data-mii-face-url="https://pretendo-cdn.b-cdn.net/mii/<%= pid %>/sorrow.png"
data-mii-face-url="https://cdn.pretendo.cc/mii/<%= pid %>/sorrow.png"
data-sound="SE_WAVE_MII_FACE_05">
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/webfiles/web/partials/notifications.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li>
<div class="hover">
<a href="/users/<%= notification.objectID %>" data-pjax="#body" class="icon-container notify">
<img src="https://pretendo-cdn.b-cdn.net/mii/<%= notification.objectID %>/normal_face.png" class="icon">
<img src="https://cdn.pretendo.cc/mii/<%= notification.objectID %>/normal_face.png" class="icon">
</a>
<a class="body" href="<%= notification.link %>">
<% if(notification.users.length === 1) {%>
Expand Down
Loading

0 comments on commit 9c09804

Please sign in to comment.