Skip to content
This repository was archived by the owner on Mar 5, 2020. It is now read-only.

Commit d4b9676

Browse files
committed
A lot of minor changes
1 parent b1e10e8 commit d4b9676

File tree

12 files changed

+26
-24
lines changed

12 files changed

+26
-24
lines changed

src/main/java/pl/simplemethod/codebin/CodebinApplication.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,11 @@ public LinkClient linkClient()
2626

2727
@Bean
2828
public SrvClient srvClient() {
29-
return new SrvClient("http://srv.simplemethod.io:4815");
29+
return new SrvClient("https://simplemethod.io:8433");
3030
}
3131

3232
@Bean
3333
public GithubClient githubClient() {
3434
return new GithubClient("2f5c2010372081b036ff", "29e08d58c97f1448d3bd16f2ac10e5541be53937");
3535
}
36-
37-
@Bean
38-
public String string() {
39-
return "";
40-
}
41-
4236
}

src/main/resources/application.properties

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spring.jmx.unique-names=true
1010
spring.security.oauth2.client.registration.github.client-id=2f5c2010372081b036ff
1111
spring.security.oauth2.client.registration.github.client-secret=29e08d58c97f1448d3bd16f2ac10e5541be53937
1212
spring.security.oauth2.client.registration.github.scope=read:user,user:email,repo
13-
spring.security.oauth2.client.registration.github.redirect-uri=http://127.0.0.1/postlogin
13+
spring.security.oauth2.client.registration.github.redirect-uri=https://127.0.0.1/postlogin
1414

1515
#---------------------------------------------------
1616
# THYMELEAF PROPERTIES
@@ -45,6 +45,5 @@ paypal.mode=sandbox
4545
# HTTPS PROPERTIES
4646
#---------------------------------------------------
4747
server.ssl.key-store-type=PKCS12
48-
server.ssl.key-store=classpath:keystore/key.p12
49-
server.ssl.key-store-password=chardonnay71
50-
server.ssl.key-alias=key
48+
server.ssl.key-store=classpath:keystore/cert.p12
49+
server.ssl.key-store-password=chardonnay71

src/main/resources/keystore/cert.p12

5.51 KB
Binary file not shown.

src/main/resources/keystore/key.p12

-2.52 KB
Binary file not shown.

src/main/resources/public/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ app.controller('ContainersCreateController', ['$filter', '$routeParams', '$scope
121121

122122
var str = "" + $scope.id;
123123
var res = str.substring(0, 3);
124-
$scope.exposedports = 8080;
124+
$scope.exposedports = 8443;
125125
$scope.hostports = (1 + res);
126126
$scope.dockerName = $scope.id;
127127
$scope.progressBar = 90;
@@ -289,6 +289,7 @@ app.controller('HomeController', function ($scope, $http, $cookies) {
289289
$scope.numbersColl = response.data.collaborators;
290290
$scope.followers = response.data.followers;
291291
$scope.following = response.data.following;
292+
$scope.loaded = true;
292293
},
293294
function () {
294295
$scope.passCheck = false;
@@ -366,11 +367,12 @@ app.controller('ProfileController', function ($scope, $http) {
366367
$http.get('https://127.0.0.1/github/user/subscription').then(
367368
function (response) {
368369
$scope.subscriber = response.data.subscriber;
370+
$scope.loaded = true;
369371
}, function () {
370372
console.error('Cookie not set');
373+
$scope.loaded = true;
371374
}
372375
)
373-
374376
});
375377

376378

src/main/resources/public/dashboard.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<meta name="description" content="Run your code online">
77
<meta http-equiv="X-UA-Compatible" content="IE=edge">
88
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
9+
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
910

1011
<!-- Title -->
1112
<title>Codebin | Dashboard</title>
@@ -25,11 +26,6 @@
2526
</head>
2627

2728
<body class="h-100" ng-controller="dashboardGithub">
28-
<!-- Preloader -->
29-
<div id="preloader">
30-
<div class="loader"></div>
31-
</div>
32-
3329
<div class="container-fluid">
3430
<div class="row">
3531
<!-- Main Sidebar -->
@@ -91,7 +87,7 @@
9187
<a class="dropdown-item" href="#!profile">
9288
<i class="material-icons">&#xE7FD;</i> Profile</a>
9389
<div class="dropdown-divider"></div>
94-
<a class="dropdown-item text-danger" ng-click="logout()">
90+
<a class="dropdown-item text-danger" href="#" ng-click="logout()">
9591
<i class="material-icons text-danger">&#xE879;</i> Logout</a>
9692
</div>
9793
</li>

src/main/resources/public/dashboard/container.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h6 class="m-0">General view</h6>
3535
<span ng-if="shareStatus !== null" class="d-flex mb-2"><i
3636
class="material-icons mr-1">visibility</i><strong
3737
class="mr-1">Visibility:</strong> <strong class="text-success">Available</strong>
38-
<a class="ml-auto" href="http://127.0.0.1/share/{{shareStatus}}"><i class="fas fa-external-link-alt"></i> Open container</a></span>
38+
<a class="ml-auto" href="https://127.0.0.1/share/{{shareStatus}}"><i class="fas fa-external-link-alt"></i> Open container</a></span>
3939
<span ng-if="shareStatus === null" class="d-flex mb-2"><i
4040
class="material-icons mr-1">visibility</i><strong
4141
class="mr-1">Visibility:</strong> <strong class="text-danger"><a href=""
@@ -127,7 +127,7 @@ <h5 style="float:right;" class="modal-title">Local access</h5>
127127
</div>
128128
<div class="modal-body">
129129
<object style="float:right; width:100%;height:100vh;"
130-
data="http://waw1.simplemethod.io:{{hostPorts}}" type="text/html">
130+
data="https://srv.simplemethod.io:{{hostPorts}}" type="text/html">
131131
Docker
132132
</object>
133133
</div>

src/main/resources/public/dashboard/home.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- Preloader -->
2+
<div ng-if="loaded != true" id="preloader">
3+
<div class="loader"></div>
4+
</div>
5+
16
<!-- Page Header -->
27
<div class="page-header row no-gutters py-4">
38
<div class="col-12 col-sm-4 text-center text-sm-left mb-0">

src/main/resources/public/dashboard/profile.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!-- Preloader -->
2+
<div ng-if="loaded != true" id="preloader">
3+
<div class="loader"></div>
4+
</div>
5+
16
<div ng-if="subscriber != true">
27
<!-- Page Header -->
38
<div class="page-header row no-gutters py-4">

src/main/resources/public/login.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h4 class="card-title">
4747
<h4>S</h4>
4848
</div>
4949
</h4>
50-
<form target="_blank" action="/oauth/github" method="GET">
50+
<form action="/oauth/github" method="GET">
5151
<div class="form-group no-margin">
5252
<button type="submit" class="btn btn-block btn-social btn-github" >
5353
<span class="fa fa-github"></span> Sign in with GitHub

0 commit comments

Comments
 (0)