Skip to content

Commit 7cc04bb

Browse files
authored
Merge pull request #30 from Halbes-Byte/feature/user
User Management and Meeting System Enhancements
2 parents 896a69f + d42041d commit 7cc04bb

File tree

59 files changed

+1278
-335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1278
-335
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Diagramme/DomainPackage.png

324 KB
Loading

Diagramme/ServicePackage.png

394 KB
Loading

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
# Study Buddies Server
2-
3-
## Documentation
4-
Can be found at `/api-docs` (e.g. `https://example.com/api-docs`)
5-
6-
## Interactive DB
7-
Can be found at `/h2-console`
8-
```
9-
Driver Class: org.h2.Driver
10-
JDBC URL: jdbc:h2:file:./data/demo
11-
User Name: sa
12-
Password: password
13-
```
2+
Backend Server for the Study Buddies Backend.
3+
Refer to the documentation here: https://github.com/Halbes-Byte/study-buddies-server/wiki

api_spec.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

git-user-stats

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
#
3+
# Show user stats (commits, files modified, insertions, deletions, and total
4+
# lines modified) for a repo
5+
6+
git_log_opts=( "$@" )
7+
8+
git log "${git_log_opts[@]}" --format='author: %ae' --numstat \
9+
| tr '[A-Z]' '[a-z]' \
10+
| grep -v '^$' \
11+
| grep -v '^-' \
12+
| gawk '
13+
{
14+
if ($1 == "author:") {
15+
author = $2;
16+
commits[author]++;
17+
} else {
18+
insertions[author] += $1;
19+
deletions[author] += $2;
20+
total[author] += $1 + $2;
21+
# if this is the first time seeing this file for this
22+
# author, increment their file count
23+
author_file = author ":" $3;
24+
if (!(author_file in seen)) {
25+
seen[author_file] = 1;
26+
files[author]++;
27+
}
28+
}
29+
}
30+
END {
31+
# Print a header
32+
printf("%-30s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\n",
33+
"Email", "Commits", "Files",
34+
"Insertions", "Deletions", "Total Lines");
35+
printf("%-30s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\n",
36+
"-----", "-------", "-----",
37+
"----------", "---------", "-----------");
38+
39+
# Print the stats for each user, sorted by total lines
40+
n = asorti(total, sorted_emails, "@val_num_desc");
41+
for (i = 1; i <= n; i++) {
42+
email = sorted_emails[i];
43+
printf("%-30s\t%-10s\t%-10s\t%-10s\t%-10s\t%-10s\n",
44+
email, commits[email], files[email],
45+
insertions[email], deletions[email], total[email]);
46+
}
47+
}
48+
'

javaversion.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

server/src/main/java/com/studybuddies/server/configuration/CORS.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
@Configuration
1212
public class CORS {
13+
1314
@Bean
1415
public CorsConfigurationSource cors() {
1516
CorsConfiguration conf = new CorsConfiguration();

server/src/main/java/com/studybuddies/server/configuration/DevConfig.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

server/src/main/java/com/studybuddies/server/configuration/DevProfileListener.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)