Skip to content

Commit 65a54c7

Browse files
committed
initial commit
0 parents  commit 65a54c7

Some content is hidden

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

44 files changed

+7063
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
target/
2+
.classpath
3+
.idea/
4+
.project
5+
.settings
6+
.history
7+
store

build.sbt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import chrome.Impl._
2+
import chrome.permissions.APIPermission._
3+
import net.lullabyte.{Chrome, ChromeSbtPlugin}
4+
5+
lazy val root = project.in(file("."))
6+
.enablePlugins(ChromeSbtPlugin)
7+
.settings(
8+
name := "System Monitor",
9+
version := "0.1.0",
10+
scalaVersion := "2.11.7",
11+
scalacOptions ++= Seq(
12+
"-language:implicitConversions",
13+
"-language:existentials",
14+
"-Xlint",
15+
"-deprecation",
16+
"-Xfatal-warnings",
17+
"-feature"
18+
),
19+
persistLauncher := true,
20+
persistLauncher in Test := false,
21+
relativeSourceMaps := true,
22+
libraryDependencies ++= Seq(
23+
"org.scala-js" %%% "scalajs-dom" % "0.8.0" withSources() withJavadoc(),
24+
"com.github.japgolly.scalajs-react" %%% "core" % "0.9.1" withSources() withJavadoc(),
25+
"com.github.japgolly.scalajs-react" %%% "extra" % "0.9.1" withSources() withJavadoc(),
26+
"com.github.japgolly.scalacss" %%% "core" % "0.3.0" withSources() withJavadoc(),
27+
"com.github.japgolly.scalacss" %%% "ext-react" % "0.3.0" withSources() withJavadoc(),
28+
"net.lullabyte" %%% "scala-js-chrome" % "0.2.0" withSources() withJavadoc()
29+
),
30+
jsDependencies += "org.webjars" % "react" % "0.13.3" / "react-with-addons.min.js" commonJSName "React",
31+
skip in packageJSDependencies := false,
32+
chromeManifest := AppManifest(
33+
name = name.value,
34+
version = version.value,
35+
app = App(
36+
background = Background(
37+
scripts = List("deps.js", "main.js", "launcher.js")
38+
)
39+
),
40+
defaultLocale = Some("en"),
41+
icons = Chrome.icons(
42+
"assets/icons",
43+
"app.png",
44+
Set(16, 32, 48, 64, 96, 128, 256, 512)
45+
),
46+
permissions = Set(
47+
System.CPU,
48+
System.Display,
49+
System.Memory,
50+
System.Network,
51+
Storage
52+
)
53+
)
54+
)
55+
56+

content/_locales/de/messages.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"appName": {
3+
"message": "System Monitor"
4+
},
5+
"appDesc": {
6+
"message": ""
7+
},
8+
"memory": {
9+
"message": "Arbeitsspeicher"
10+
}
11+
}

content/_locales/en/messages.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"appName": {
3+
"message": "System Monitor",
4+
"description": "The title of the application, displayed in the web store."
5+
},
6+
"appDesc": {
7+
"message": "",
8+
"description":"The description of the application, displayed in the web store."
9+
},
10+
"memory": {
11+
"message": "Memory",
12+
"description":""
13+
}
14+
}

content/assets/css/app.css

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
body, html {
2+
font-size: 14.5px;
3+
width: 100%;
4+
height: 100%;
5+
margin: 0px;
6+
padding: 0px;
7+
}
8+
9+
10+
ul {
11+
margin: 0px;
12+
padding: 0px;
13+
list-style: none;
14+
}
15+
16+
17+
.app {
18+
display: flex;
19+
flex-direction: row;
20+
height: 100%;
21+
width: 100%;
22+
}
23+
24+
25+
.view {
26+
display: flex;
27+
flex: 1;
28+
}
29+
30+
31+
.side-bar.icon-only {
32+
min-width: 0px;
33+
}
34+
35+
.side-bar {
36+
min-width: 250px;
37+
max-width: 250px;
38+
display: flex;
39+
border-right: 1px solid #2A2A2A;
40+
}
41+
42+
.side-bar > ul {
43+
margin: 0px;
44+
flex: 1;
45+
}
46+
47+
a {
48+
text-decoration: none;
49+
color: #8BC34A;
50+
}
51+
52+
.menu-item {
53+
display: flex;
54+
flex-direction: row;
55+
align-items: center;
56+
height: 50px;
57+
transition: 150ms linear all;
58+
cursor: pointer;
59+
}
60+
61+
.menu-item:hover {
62+
background-color: #e0e0e0;
63+
}
64+
65+
.menu-item > img {
66+
height: 100%
67+
}
68+
69+
.menu-item > div {
70+
flex: 1;
71+
display: flex;
72+
justify-content: center;
73+
}
74+
75+
.icon-only .menu-item div {
76+
display: none;
77+
}
78+
79+
.selected > .menu-item {
80+
background: #2A2A2A;
81+
color: #ffffff;
82+
}
83+
84+
.selected > .menu-item:hover {
85+
background: #2A2A2A;
86+
color: #ffffff;
87+
}
88+
89+
.info-item {
90+
padding: 10px 20px;
91+
margin: 0px;
92+
border-bottom: 1px solid #e0e0e0;
93+
}
94+
95+
.info-item .label {
96+
97+
}
98+
99+
.info-item .info {
100+
101+
}

content/assets/html/App.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title></title>
6+
<link rel="stylesheet" href="/assets/css/app.css">
7+
</head>
8+
<body>
9+
</body>
10+
</html>

content/assets/icons/128/app.png

3.64 KB
Loading
4.23 KB
Loading

content/assets/icons/16/app.png

371 Bytes
Loading

content/assets/icons/256/app.png

8.28 KB
Loading

0 commit comments

Comments
 (0)