Version initiale

This commit is contained in:
François Pelletier 2024-08-31 22:30:44 -04:00
commit 808c9d7385
22 changed files with 403 additions and 0 deletions

3
conf/application.conf Normal file
View file

@ -0,0 +1,3 @@
play.filters.hosts {
allowed = ["."]
}

25
conf/bricks.json Normal file
View file

@ -0,0 +1,25 @@
[
{"x": 29, "y": 50, "text": "LinkedIn", "color": "#0077B5", "textColor": "#FFFFFF"},
{"x": 127, "y": 50, "text": "GitHub", "color": "#24292E", "textColor": "#FFFFFF"},
{"x": 225, "y": 50, "text": "Slack", "color": "#4A154B", "textColor": "#FFFFFF"},
{"x": 323, "y": 50, "text": "Trello", "color": "#0079BF", "textColor": "#FFFFFF"},
{"x": 421, "y": 50, "text": "Asana", "color": "#F06A6A", "textColor": "#FFFFFF"},
{"x": 29, "y": 88, "text": "Upwork", "color": "#6FDA44", "textColor": "#FFFFFF"},
{"x": 127, "y": 88, "text": "Fiverr", "color": "#1DBF73", "textColor": "#FFFFFF"},
{"x": 225, "y": 88, "text": "Zoom", "color": "#2D8CFF", "textColor": "#FFFFFF"},
{"x": 323, "y": 88, "text": "Dropbox", "color": "#0061FF", "textColor": "#FFFFFF"},
{"x": 421, "y": 88, "text": "Notion", "color": "#000000", "textColor": "#FFFFFF"},
{"x": 29, "y": 126, "text": "X", "color": "#000000", "textColor": "#FFFFFF"},
{"x": 127, "y": 126, "text": "Stripe", "color": "#008CDD", "textColor": "#FFFFFF"},
{"x": 225, "y": 126, "text": "Mailchimp", "color": "#FFE01B", "textColor": "#000000"},
{"x": 323, "y": 126, "text": "Canva", "color": "#00C4CC", "textColor": "#FFFFFF"},
{"x": 421, "y": 126, "text": "Google", "color": "#4285F4", "textColor": "#FFFFFF"},
{"x": 29, "y": 164, "text": "Facebook", "color": "#1877F2", "textColor": "#FFFFFF"},
{"x": 127, "y": 164, "text": "Instagram", "color": "#E4405F", "textColor": "#FFFFFF"},
{"x": 225, "y": 164, "text": "YouTube", "color": "#FF0000", "textColor": "#FFFFFF"},
{"x": 323, "y": 164, "text": "TikTok", "color": "#000000", "textColor": "#FFFFFF"},
{"x": 421, "y": 164, "text": "Pinterest", "color": "#BD081C", "textColor": "#FFFFFF"}
]

50
conf/logback.xml Normal file
View file

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- https://www.playframework.com/documentation/latest/SettingsLogger -->
<!DOCTYPE configuration>
<configuration>
<import class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"/>
<import class="ch.qos.logback.classic.AsyncAppender"/>
<import class="ch.qos.logback.core.FileAppender"/>
<import class="ch.qos.logback.core.ConsoleAppender"/>
<appender name="FILE" class="FileAppender">
<file>${application.home:-.}/logs/application.log</file>
<encoder class="PatternLayoutEncoder">
<charset>UTF-8</charset>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern>
</encoder>
</appender>
<appender name="STDOUT" class="ConsoleAppender">
<!--
On Windows, enabling Jansi is recommended to benefit from color code interpretation on DOS command prompts,
which otherwise risk being sent ANSI escape sequences that they cannot interpret.
See https://logback.qos.ch/manual/layouts.html#coloring
-->
<!-- <withJansi>true</withJansi> -->
<encoder class="PatternLayoutEncoder">
<charset>UTF-8</charset>
<pattern>%d{yyyy-MM-dd HH:mm:ss} %highlight(%-5level) %cyan(%logger{36}) %magenta(%X{pekkoSource}) %msg%n</pattern>
</encoder>
</appender>
<appender name="ASYNCFILE" class="AsyncAppender">
<appender-ref ref="FILE"/>
</appender>
<appender name="ASYNCSTDOUT" class="AsyncAppender">
<appender-ref ref="STDOUT"/>
</appender>
<logger name="play" level="INFO"/>
<logger name="application" level="DEBUG"/>
<root level="WARN">
<appender-ref ref="ASYNCFILE"/>
<appender-ref ref="ASYNCSTDOUT"/>
</root>
</configuration>

5
conf/routes Normal file
View file

@ -0,0 +1,5 @@
GET /game controllers.GameController.index()
GET /bricks controllers.GameController.getBricks()
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)