Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

chore: use HTTPS and ES5 (#329)

Guilherme Oenningd53f550a9094
diff --git a/README.md b/README.md
index 03b279471..1a49a76c9 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Fider is an open platform to collect and organize customer feedback. By using the platform, your community can share, vote and discuss on ideas they have to make your product or company even better.
-You can [see it in action](https://feedback.fider.io/) or visit http://getfider.com to learn more about all features and how to get started.
+You can [see it in action](https://feedback.fider.io/) or visit https://getfider.com to learn more about all features and how to get started.
![](etc/homepage.png)
diff --git a/app/middlewares/domain.go b/app/middlewares/domain.go
index d5690444a..f964fd456 100644
--- a/app/middlewares/domain.go
+++ b/app/middlewares/domain.go
@@ -47,7 +47,7 @@ func MultiTenant() web.MiddlewareFunc {
// This is only vadid for fider.io hosting
if (env.IsProduction() && hostname == "fider.io") ||
(env.IsDevelopment() && hostname == "dev.fider.io") {
- return c.Redirect(http.StatusTemporaryRedirect, "http://getfider.com")
+ return c.Redirect(http.StatusTemporaryRedirect, "https://getfider.com")
}
tenant, err := c.Services().Tenants.GetByDomain(hostname)
diff --git a/public/components/common/Footer.tsx b/public/components/common/Footer.tsx
index 9d20475dc..2dc826b95 100644
--- a/public/components/common/Footer.tsx
+++ b/public/components/common/Footer.tsx
@@ -8,7 +8,7 @@ export const Footer = () => {
<div className="ui inverted section divider" />
<div className="ui horizontal small divided link list">
<div id="powered-by">
- <a className="item" target="_blank" href="http://getfider.com/">
+ <a className="item" target="_blank" href="https://getfider.com/">
<span>Powered by Fider</span>
<img src={logo} />
</a>
diff --git a/public/pages/Home/components/IdeaFilter.tsx b/public/pages/Home/components/IdeaFilter.tsx
index 727221e91..e7be09709 100644
--- a/public/pages/Home/components/IdeaFilter.tsx
+++ b/public/pages/Home/components/IdeaFilter.tsx
@@ -33,7 +33,8 @@ export class IdeaFilter extends React.Component<IdeaFilterProps, {}> {
});
});
- const activeFilter = options.find(x => x.value === this.props.activeFilter) ? this.props.activeFilter : "trending";
+ const filterExists = options.filter(x => x.value === this.props.activeFilter).length > 0;
+ const activeFilter = filterExists ? this.props.activeFilter : "trending";
return (
<>
diff --git a/tsconfig.json b/tsconfig.json
index faffdc60c..75739ebd7 100755
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -11,7 +11,7 @@
"react-textarea-autosize"
],
"jsx": "react",
- "lib": ["dom", "es2015.promise", "es6"],
+ "lib": ["dom", "es2015.promise", "es5"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"baseUrl": "./public",
diff --git a/views/403.html b/views/403.html
index 47c86ad86..bf09d4de0 100644
--- a/views/403.html
+++ b/views/403.html
@@ -7,7 +7,7 @@ Not Authorized &middot; Fider
{{define "content"}}
<div class="ui middle aligned center aligned grid failure-page">
<div class="column">
- <img src="http://getfider.com/images/logo-100x100.png"/>
+ <img src="https://getfider.com/images/logo-100x100.png"/>
<h1>NOT AUTHORIZED</h1>
<p>
You are not authorized to view this page.
diff --git a/views/404.html b/views/404.html
index adda85a86..48c9e0bb5 100644
--- a/views/404.html
+++ b/views/404.html
@@ -7,7 +7,7 @@
{{define "content"}}
<div class="ui middle aligned center aligned grid failure-page">
<div class="column">
- <img src="http://getfider.com/images/logo-100x100.png"/>
+ <img src="https://getfider.com/images/logo-100x100.png"/>
<h1>PAGE NOT FOUND</h1>
<p>
The link you clicked may be broken or <br />
diff --git a/views/500.html b/views/500.html
index 0ecca6eed..7e14e0fa9 100644
--- a/views/500.html
+++ b/views/500.html
@@ -7,7 +7,7 @@
{{define "content"}}
<div class="ui middle aligned center aligned grid failure-page">
<div class="column">
- <img src="http://getfider.com/images/logo-100x100.png"/>
+ <img src="https://getfider.com/images/logo-100x100.png"/>
<h1>Shoot! Well, this is unexpected…</h1>
<p>An error has occurred and we're working to fix the problem! </br> We’ll be up and running shortly.</p>
diff --git a/views/base.html b/views/base.html
index dbe58af58..8a82897cd 100644
--- a/views/base.html
+++ b/views/base.html
@@ -11,7 +11,7 @@
<meta property="og:description" content="We'd love to hear what you're thinking about. What can we do better? This is the place for you to vote, discuss and share ideas." />
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ .baseURL }}" />
- <meta property="og:image" content="http://getfider.com/images/logo-small.png">
+ <meta property="og:image" content="https://getfider.com/images/logo-small.png">
</head>
<body>
<noscript class="ui container">