Skip to content

Commit

Permalink
Test commit, stash then force
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Nahornyi committed Dec 9, 2020
1 parent ce29e47 commit acdcf71
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
},
"devDependencies": {
"tslint": "^6.1.3",
"typescript": "^4.0.5"
"typescript": "~3.7.2"
}
}
2 changes: 1 addition & 1 deletion client-web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1" name="viewport"/>
<title>YouFace</title>
<title>social-network</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
3 changes: 2 additions & 1 deletion client-web/src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from "react"
import {Login} from "./pages/Login/Login";

function App() {
return (
<h1>test</h1>
<Login/>
);
}

Expand Down
4 changes: 4 additions & 0 deletions client-web/src/pages/Login/Login.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import * as React from 'react';

export const Login = () => <h1>Login page</h1>

1 change: 1 addition & 0 deletions client-web/src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="react-scripts" />
26 changes: 26 additions & 0 deletions client-web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react"
},
"include": [
"src"
]
}
6 changes: 5 additions & 1 deletion src/main/java/com/kpi/project/resource/TestController.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@RestController
public class TestController {

@RequestMapping("test/string")
public String test() {
return "string.ok";
Expand All @@ -20,4 +19,9 @@ public Object illegalArgument() {
public Object exception() throws Exception {
throw new Exception("some exception");
}

@RequestMapping("/test/secured")
public Object getSecured() throws Exception {
throw new Exception("secured point");
}
}

0 comments on commit acdcf71

Please sign in to comment.