Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
A
aut0m4t0n
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Liese
aut0m4t0n
Commits
80a39efa
Commit
80a39efa
authored
Mar 01, 2020
by
Tobias Liese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frontend stuff
parent
d0b8c56f
Pipeline
#92694
failed with stages
in 32 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
24 deletions
+65
-24
build.gradle
build.gradle
+1
-1
gradle.properties
gradle.properties
+2
-2
src/main/resources/META-INF/resources/main.css
src/main/resources/META-INF/resources/main.css
+4
-4
src/main/resources/META-INF/resources/main.js
src/main/resources/META-INF/resources/main.js
+0
-13
src/main/resources/META-INF/resources/main.ts
src/main/resources/META-INF/resources/main.ts
+55
-0
src/main/resources/application.properties
src/main/resources/application.properties
+3
-4
No files found.
build.gradle
View file @
80a39efa
...
...
@@ -16,7 +16,7 @@ dependencies {
implementation
enforcedPlatform
(
"${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}"
)
implementation
'io.quarkus:quarkus-resteasy'
implementation
'io.quarkus:quarkus-resteasy-qute'
implementation
'io.quarkus:quarkus-jdbc-
mariadb
'
implementation
'io.quarkus:quarkus-jdbc-
h2
'
testImplementation
'io.quarkus:quarkus-junit5'
testImplementation
'io.rest-assured:rest-assured:4.2.0'
...
...
gradle.properties
View file @
80a39efa
#Gradle properties
#Tue Feb 11 17:11:23 UTC 2020
quarkusPluginVersion
=
1.3.0.Alpha1
quarkusPluginVersion
=
999-SNAPSHOT
quarkusPlatformArtifactId
=
quarkus-bom
quarkusPlatformVersion
=
1.3.0.Alpha1
quarkusPlatformVersion
=
999-SNAPSHOT
quarkusPlatformGroupId
=
io.quarkus
src/main/resources/META-INF/resources/main.css
View file @
80a39efa
...
...
@@ -50,10 +50,10 @@ li a:hover {
background-color
:
var
(
--main-ac-color
);
}
canvas
{
width
:
100%
;
height
:
80%
;
}
/*canvas {*/
/* width: 100%;*/
/* height: 80%;*/
/*}*/
.content
{
height
:
auto
;
...
...
src/main/resources/META-INF/resources/main.js
deleted
100644 → 0
View file @
d0b8c56f
let
canvas
=
document
.
getElementsByTagName
(
'
canvas
'
)[
0
];
canvas
.
height
=
80
;
canvas
.
width
=
canvas
.
style
.
width
;
// let webSocket = new WebSocket(
// 'ws://' + window.location.host + "/websocket");
// webSocket.onopen = function (event) {
// console.log("connected")
// webSocket.send("automaton new 'cool name'")
// };
// webSocket.onerror = function (event) {
// console.error(event)
// }
\ No newline at end of file
src/main/resources/META-INF/resources/main.ts
0 → 100644
View file @
80a39efa
class
Field
{
private
canvas
:
HTMLCanvasElement
=
document
.
getElementsByTagName
(
'
canvas
'
)[
0
];
private
context
=
this
.
canvas
.
getContext
(
"
2d
"
);
private
states
:
State
[]
=
new
Array
<
State
>
()
constructor
()
{
this
.
rePaint
()
this
.
addState
(
1
,
1
,
"
stonks
"
)
}
addState
(
x
:
number
,
y
:
number
,
name
:
String
)
{
this
.
states
.
push
(
new
State
(
x
,
y
,
name
))
this
.
drawState
(
this
.
states
[
this
.
states
.
length
-
1
])
}
rePaint
()
{
this
.
canvas
.
height
=
1000
this
.
canvas
.
width
=
document
.
getElementsByClassName
(
"
menu
"
).
item
(
0
).
clientWidth
for
(
let
state
of
this
.
states
)
{
console
.
log
(
"
test
"
)
this
.
drawState
(
state
)
}
}
private
drawState
(
state
:
State
)
{
this
.
context
.
beginPath
()
this
.
context
.
arc
(
state
.
x
,
state
.
y
,
10
,
0
,
2
*
Math
.
PI
)
this
.
context
.
stroke
()
}
}
class
State
{
x
:
number
y
:
number
name
:
string
constructor
(
x
,
y
,
name
)
{
this
.
x
=
x
this
.
y
=
y
this
.
name
=
name
}
}
let
field
:
Field
=
new
Field
();
window
.
onresize
=
field
.
rePaint
// let webSocket = new WebSocket(
// 'ws://' + window.location.host + "/websocket");
// webSocket.onopen = function (event) {
// console.log("connected")
// webSocket.send("automaton new 'cool name'")
// };
// webSocket.onerror = function (event) {
// console.error(event)
// }
\ No newline at end of file
src/main/resources/application.properties
View file @
80a39efa
# Configuration file
quarkus.datasource.url
=
jdbc:mariadb://localhost:3306/test
quarkus.datasource.driver
=
org.mariadb.jdbc.Driver
quarkus.datasource.username
=
root
quarkus.datasource.password
=
test123
quarkus.datasource.url
=
jdbc:h2:tcp://localhost/~/test
quarkus.datasource.driver
=
org.h2.Driver
quarkus.datasource.username
=
sa
# drop and create the database at startup (use `update` to only update the schema)
quarkus.hibernate-orm.database.generation
=
update
\ No newline at end of file
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