Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sfcode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush
sfcode
Commits
88d8797e
Commit
88d8797e
authored
Dec 07, 2020
by
Adarsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor
parent
7a2260cb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
22 deletions
+12
-22
.gitignore
.gitignore
+1
-1
.vscode/launch.json
.vscode/launch.json
+0
-15
backend/filedelete.php
backend/filedelete.php
+0
-2
src/app/home/home.component.ts
src/app/home/home.component.ts
+8
-1
src/app/problem.service.ts
src/app/problem.service.ts
+1
-0
src/app/user.ts
src/app/user.ts
+2
-3
No files found.
.gitignore
View file @
88d8797e
# See http://help.github.com/ignore-files/ for more about ignoring files.
/users
.vscode
# compiled output
/dist
/tmp
...
...
.vscode/launch.json
deleted
100644 → 0
View file @
7a2260cb
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit:
https://go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"pwa-chrome"
,
"request"
:
"launch"
,
"name"
:
"Launch Chrome against localhost"
,
"url"
:
"http://localhost:8080"
,
"webRoot"
:
"${workspaceFolder}"
}
]
}
\ No newline at end of file
backend/filedelete.php
View file @
88d8797e
...
...
@@ -19,7 +19,5 @@ if (isset($postData) && !empty($postData)) {
else
{
http_response_code
(
404
);
}
}
?>
src/app/home/home.component.ts
View file @
88d8797e
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
ProblemService
}
from
'
../problem.service
'
;
import
{
ApiService
}
from
'
../api.service
'
;
import
{
Problem
}
from
'
../problem
'
;
import
{
User
}
from
'
../user
'
;
@
Component
({
selector
:
'
app-home
'
,
...
...
@@ -9,12 +11,17 @@ import {Problem} from '../problem';
})
export
class
HomeComponent
implements
OnInit
{
user
:
User
;
loggedIn
:
boolean
;
problems
:
Problem
[];
constructor
(
private
problemService
:
ProblemService
)
{
constructor
(
private
dataService
:
ApiService
,
private
problemService
:
ProblemService
)
{
}
ngOnInit
():
void
{
this
.
user
=
JSON
.
parse
(
this
.
dataService
.
getToken
());
console
.
log
(
this
.
user
);
this
.
getProblems
();
}
...
...
src/app/problem.service.ts
View file @
88d8797e
import
{
Injectable
}
from
'
@angular/core
'
;
import
{
Problem
}
from
'
./problem
'
;
import
{
Observable
,
of
}
from
'
rxjs
'
;
import
{
User
}
from
'
./user
'
;
@
Injectable
({
providedIn
:
'
root
'
...
...
src/app/user.ts
View file @
88d8797e
import
{
Problem
}
from
'
./problem
'
;
export
interface
User
{
id
:
number
;
username
:
string
;
name
:
string
;
password
:
string
;
email
:
string
;
img_url
:
string
;
n_attempts
:
number
;
n_files
:
number
;
correct_timeline
:
string
;
rating
:
number
;
my_questions
:
Problem
[];
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment