浏览代码

Moved to new CDN and Closes #20

Yoginth 6 年之前
父节点
当前提交
e13fb6dca8

文件差异内容过多而无法显示
+ 1 - 1
public/css/gitote.min.css


+ 1 - 1
public/less/_home.less

@@ -76,7 +76,7 @@
 		}
 	}
 	&.prompt {
-		background-image: url(https://cdn.gitote.in/img/pattern.svg);
+		background-image: url(https://gitote-cdn.netlify.com/img/pattern.svg);
 		background-position: center 30%;
 		background-size: 25% auto;
 		background-color: #f3f3f3;

+ 9 - 9
public/manifest.json

@@ -3,39 +3,39 @@
    "icons":[  
       {  
          "sizes":"114x114",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-114x114.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-114x114.png"
       },
       {  
          "sizes":"120x120",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-120x120.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-120x120.png"
       },
       {  
          "sizes":"144x144",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-144x144.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-144x144.png"
       },
       {  
          "sizes":"152x152",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-152x152.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-152x152.png"
       },
       {  
          "sizes":"180x180",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-180x180.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-180x180.png"
       },
       {  
          "sizes":"57x57",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-57x57.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-57x57.png"
       },
       {  
          "sizes":"60x60",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-60x60.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-60x60.png"
       },
       {  
          "sizes":"72x72",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-72x72.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-72x72.png"
       },
       {  
          "sizes":"76x76",
-         "src":"https://cdn.gitote.in/touch/apple-touch-icon-76x76.png"
+         "src":"https://gitote-cdn.netlify.com/touch/apple-touch-icon-76x76.png"
       }
    ]
 }

+ 5 - 5
templates/base/footer.tmpl

@@ -34,16 +34,16 @@
 
 <!-- Third-party libraries -->
 {{if .RequireHighlightJS}}
-	<link rel="stylesheet" href="https://cdn.gitote.in/plugins/highlight/github.css">
-	<script src="https://cdn.gitote.in/plugins/highlight/highlight.pack.js"></script>
+	<link rel="stylesheet" href="https://gitote-cdn.netlify.com/plugins/highlight/github.css">
+	<script src="https://gitote-cdn.netlify.com/plugins/highlight/highlight.pack.js"></script>
 {{end}}
 {{if .RequireMinicolors}}
 	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.css">
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.js"></script>
 {{end}}
 {{if .RequireDatetimepicker}}
-	<link rel="stylesheet" href="https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.css">
-	<script src="https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.js"></script>
+	<link rel="stylesheet" href="https://gitote-cdn.netlify.com/plugins/datetimepicker/jquery.datetimepicker.css">
+	<script src="https://gitote-cdn.netlify.com/plugins/datetimepicker/jquery.datetimepicker.js"></script>
 {{end}}
 {{if .RequireDropzone}}
 	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.css">
@@ -52,7 +52,7 @@
 {{if .RequireAutosize}}
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/autosize.js/4.0.2/autosize.min.js"></script>
 {{end}}
-<script src="https://cdn.gitote.in/js/emojify.js"></script>
+<script src="https://gitote-cdn.netlify.com/js/emojify.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.9/clipboard.min.js"></script>
 
 </html>

+ 1 - 1
templates/base/footer_content.tmpl

@@ -1,6 +1,6 @@
 <div class="ui stackable grid container home-footer home-main padding">
 	<div class="seven wide right floated column">
-		<span class="ui header"><img src="https://cdn.gitote.in/logoblack.svg">© 2019 Gitote</span>
+		<span class="ui header"><img src="https://gitote-cdn.netlify.com/logoblack.svg">© 2019 Gitote</span>
 		<a class="item mwlii" target="_blank" href="https://madewithlove.org.in">
 			<p>
 				Made with <span style="color: #e74c3c">♥</span> in India

+ 2 - 2
templates/base/meta.tmpl

@@ -80,13 +80,13 @@
 <meta property="og:type" content="website" />
 <meta property="og:title" content="{{if .IsLogged}}{{.Title}}{{else}}{{if .Title}}{{.Title}} - {{end}}Gitote | {{.i18n.Tr "app_desc"}}{{end}}">
 <meta property="og:description" content="{{.i18n.Tr "description"}}">
-<meta property="og:image" content="https://cdn.gitote.in/og.png" />
+<meta property="og:image" content="https://gitote-cdn.netlify.com/og.png" />
 <meta property="og:site_name" content="Gitote">
 
 <meta property="twitter:card" content="summary" />
 <meta property="twitter:title" content="{{if .IsLogged}}{{.Title}}{{else}}{{if .Title}}{{.Title}} - {{end}}Gitote | {{.i18n.Tr "app_desc"}}{{end}}">
 <meta property="twitter:description" content="{{.i18n.Tr "description"}}">
-<meta property="twitter:image" content="https://cdn.gitote.in/og.png" />
+<meta property="twitter:image" content="https://gitote-cdn.netlify.com/og.png" />
 
 {{end}}
 

+ 1 - 1
templates/embed/user.tmpl

@@ -103,7 +103,7 @@ color: #303030;
             ・{{DateFmtShort .Owner.Created}}
         </div>
         <div class="preview-gitote-logo">
-            <img style="width:5vw" src="https://cdn.gitote.in/logoblack.svg" />
+            <img style="width:5vw" src="https://gitote-cdn.netlify.com/logoblack.svg" />
         </div>
     </div>
 </div>

+ 1 - 1
templates/mail/auth/activate.tmpl

@@ -3,7 +3,7 @@
 	<head>
 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 		<title>{{.Username}}, please activate your account</title>
-		<link rel="stylesheet" href="https://cdn.gitote.in/css/email.css">
+		<link rel="stylesheet" href="https://gitote-cdn.netlify.com/css/email.css">
 	</head>
 	<body>
 		<div class="mail">

+ 2 - 2
templates/org/settings/webhook_new.tmpl

@@ -10,9 +10,9 @@
 					{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}} 🎣{{else}}{{.i18n.Tr "repo.settings.update_webhook"}} 🎣{{end}}
 					<div class="ui right">
 						{{if eq .HookType "gitote"}}
-							<img class="img-13" src="https://cdn.gitote.in/logoblack.svg">
+							<img class="img-13" src="https://gitote-cdn.netlify.com/logoblack.svg">
 						{{else}}
-							<img class="img-13" src="https://cdn.gitote.in/img/{{.HookType}}.png">
+							<img class="img-13" src="https://gitote-cdn.netlify.com/img/{{.HookType}}.png">
 						{{end}}
 					</div>
 				</h4>

+ 1 - 1
templates/pages/security.tmpl

@@ -6,7 +6,7 @@
     <div class="pages body">
         <center>
             <h1>Reporting Vulnerabilities to Gitote</h1>
-            <img class="octopus" src="https://cdn.gitote.in/img/octopus.png">
+            <img class="octopus" src="https://gitote-cdn.netlify.com/img/octopus.png">
         </center>
 
         <p class="pages-small">

+ 3 - 3
templates/repo/settings/webhook/list.tmpl

@@ -10,15 +10,15 @@
 						{{range .Types}}
 							{{if eq . "gitote"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/gitote/new">
-									<img class="img-12" src="https://cdn.gitote.in/logoblack.svg">Gitote
+									<img class="img-12" src="https://gitote-cdn.netlify.com/logoblack.svg">Gitote
 								</a>
 							{{else if eq . "slack"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/slack/new">
-									<img class="img-12" src="https://cdn.gitote.in/img/slack.png">Slack
+									<img class="img-12" src="https://gitote-cdn.netlify.com/img/slack.png">Slack
 								</a>
 							{{else if eq . "discord"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/discord/new">
-									<img class="img-12" src="https://cdn.gitote.in/img/discord.png">Discord
+									<img class="img-12" src="https://gitote-cdn.netlify.com/img/discord.png">Discord
 								</a>
 							{{end}}
 						{{end}}

+ 2 - 2
templates/repo/settings/webhook/new.tmpl

@@ -10,9 +10,9 @@
 					{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}} 🎣{{else}}{{.i18n.Tr "repo.settings.update_webhook"}} 🎣{{end}}
 					<div class="ui right">
 						{{if eq .HookType "gitote"}}
-							<img class="img-13" src="https://cdn.gitote.in/logoblack.svg">
+							<img class="img-13" src="https://gitote-cdn.netlify.com/logoblack.svg">
 						{{else}}
-							<img class="img-13" src="https://cdn.gitote.in/img/{{.HookType}}.png">
+							<img class="img-13" src="https://gitote-cdn.netlify.com/img/{{.HookType}}.png">
 						{{end}}
 					</div>
 				</h4>

+ 2 - 2
templates/status/404.tmpl

@@ -1,7 +1,7 @@
 {{template "base/head" .}}
 <div class="ui container center">
 	<div class="error align">
-		<img height="200px" src="https://cdn.gitote.in/img/404.svg" alt="404"/>
+		<img height="200px" src="https://gitote-cdn.netlify.com/img/404.svg" alt="404"/>
 	</div>
 	<form class="ui form" action="{{AppSubURL}}/explore/repos" method="get">
 		<div class="ui fluid action input">
@@ -17,7 +17,7 @@
 		<a href="http://twitter.com/gitotestatus"><span>@gitotestatus</span></a>
 	</div>
 	<div class="ui center links">
-		<img class="error image" src="https://cdn.gitote.in/logoblack.svg">
+		<img class="error image" src="https://gitote-cdn.netlify.com/logoblack.svg">
 	</div>
 </div>
 {{template "base/footer" .}}

+ 2 - 2
templates/status/500.tmpl

@@ -1,6 +1,6 @@
 {{template "base/head" .}}
 <div class="ui container center error-pages">
-	<p style="margin-top: 100px"><img height="200px" src="https://cdn.gitote.in/img/500.png" alt="500"/></p>
+	<p style="margin-top: 100px"><img height="200px" src="https://gitote-cdn.netlify.com/img/500.png" alt="500"/></p>
 	<h3 style="font-weight:bold">Looks like something went wrong!</h3>
 	<h4>We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.</h4>
 </div>
@@ -12,6 +12,6 @@
 	<a href="http://twitter.com/gitotestatus"><span>@gitotestatus</span></a>
 </div>
 <div class="ui center links">
-	<img class="error image" src="https://cdn.gitote.in/logoblack.svg">
+	<img class="error image" src="https://gitote-cdn.netlify.com/logoblack.svg">
 </div>
 {{template "base/footer" .}}

+ 1 - 1
templates/user/auth/activate.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{AppSubURL}}/user/activate" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.active_your_account"}}

+ 1 - 1
templates/user/auth/forgot_passwd.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.forgot_password"}}

+ 1 - 1
templates/user/auth/login.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "sign_in"}} to Gitote

+ 1 - 1
templates/user/auth/reset_passwd.tmpl

@@ -6,7 +6,7 @@
 				{{.CSRFTokenHTML}}
 				<input name="code" type="hidden" value="{{.Code}}">
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.reset_password"}}

+ 1 - 1
templates/user/auth/signup.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "sign_up"}}

+ 1 - 1
templates/user/auth/two_factor.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "auth.login_two_factor"}}

+ 1 - 1
templates/user/auth/two_factor_recovery_code.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://cdn.gitote.in/logoblack.svg">
+					<img height="50px" src="https://gitote-cdn.netlify.com/logoblack.svg">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "auth.login_two_factor_recovery"}}

+ 1 - 1
templates/user/dashboard/dashboard.tmpl

@@ -19,7 +19,7 @@
 				{{end}}
 				<div class="ui stackable grid container home-footer">
 					<div class="seven wide left floated column">
-						<span class="ui header"><img src="https://cdn.gitote.in/logoblack.svg">© 2019 Gitote</span>
+						<span class="ui header"><img src="https://gitote-cdn.netlify.com/logoblack.svg">© 2019 Gitote</span>
 					</div>
 					<div class="three wide column">
 						<div class="ui link list">

+ 10 - 10
templates/user/profile.tmpl

@@ -71,11 +71,11 @@
 		</div>
 		{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.IsBugHunter}}
 			<div style="margin-top:1rem" class="ui mini images">
-				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://cdn.gitote.in/img/badges/gitotedeveloper.png">{{end}}
-				{{if .Owner.IsBeta}}<img class="ui image" src="https://cdn.gitote.in/img/badges/beta.png">{{end}}
-				{{if .Owner.IsMaker}}<img class="ui image" src="https://cdn.gitote.in/img/badges/maker.png">{{end}}
-				{{if .Owner.Twitch}}<img class="ui image" src="https://cdn.gitote.in/img/badges/streamer.png">{{end}}
-				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://cdn.gitote.in/img/badges/bughunter.png">{{end}}
+				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/gitotedeveloper.png">{{end}}
+				{{if .Owner.IsBeta}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/beta.png">{{end}}
+				{{if .Owner.IsMaker}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/maker.png">{{end}}
+				{{if .Owner.Twitch}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/streamer.png">{{end}}
+				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/bughunter.png">{{end}}
 			</div>
 		{{end}}
 		{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
@@ -209,27 +209,27 @@
 									<div class="ui tiny images">
 										{{if .Owner.GitoteDeveloper}}
 											<a class="poping up" target="_blank" href="/jobs" data-content="Gitote Developer" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://cdn.gitote.in/img/badges/gitotedeveloper.png">
+												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/gitotedeveloper.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsBeta}}
 											<a class="poping up" target="_blank" href="/beta" data-content="Beta Member" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://cdn.gitote.in/img/badges/beta.png">
+												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/beta.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsMaker}}
 											<a class="poping up" target="_blank" href="/maker" data-content="Maker" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://cdn.gitote.in/img/badges/maker.png">
+												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/maker.png">
 											</a>
 										{{end}}
 										{{if .Owner.Twitch}}
 											<a class="poping up" target="_blank" href="/streamer" data-content="Streamer" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://cdn.gitote.in/img/badges/streamer.png">
+												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/streamer.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsBugHunter}}
 											<a class="poping up" target="_blank" href="/security" data-content="Bug Hunter" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://cdn.gitote.in/img/badges/bughunter.png">
+												<img class="ui image" src="https://gitote-cdn.netlify.com/img/badges/bughunter.png">
 											</a>
 										{{end}}
 									</div>