-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57bdd3c
commit a3b1b0d
Showing
20 changed files
with
310 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web: bundle exec puma -t 1:32 -b tcp://0.0.0.0:$PORT | ||
web: bundle exec puma -t 1:32 -b tcp://0.0.0.0:$PORT | ||
release: rake db:migrate css:build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
web: bin/rails server -p 3000 | ||
css: yarn build:css --watch | ||
js: yarn build --watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
//= link_directory ../javascripts .js | ||
//= link_directory ../stylesheets .css | ||
//= link_tree ../builds | ||
//= link_tree ../../javascript .js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ | |
// GO AFTER THE REQUIRES BELOW. | ||
// | ||
//= require cable | ||
import "@rails/actionable" | ||
import "cable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
(function() { | ||
var id, ids, _i, _len; | ||
|
||
App.setColors = function(data) { | ||
var count, favicon, message, redCount; | ||
redCount = +data.colors.red; | ||
favicon = redCount ? "/favicon-failing" : "/favicon-passing"; | ||
if (redCount > 0) { | ||
document.body.setAttribute("data-failing", ""); | ||
document.body.removeAttribute("data-passing"); | ||
count = document.getElementById("failing-count"); | ||
if (redCount === 1) { | ||
message = "" + redCount + " project is"; | ||
} else { | ||
message = "" + redCount + " projects are"; | ||
} | ||
count.innerHTML = message; | ||
} else { | ||
document.body.removeAttribute("data-failing"); | ||
document.body.setAttribute("data-passing", ""); | ||
} | ||
if (data.colors.yellow) { | ||
document.body.setAttribute("data-building", ""); | ||
favicon += "-building"; | ||
} else { | ||
document.body.removeAttribute("data-building"); | ||
} | ||
return document.getElementById("favicon").setAttribute("href", favicon + ".ico"); | ||
}; | ||
|
||
ids = document.location.pathname.match(/^\/([^\/\?]*)/)[1].split(","); | ||
|
||
for (_i = 0, _len = ids.length; _i < _len; _i++) { | ||
id = ids[_i]; | ||
if (id === "") { | ||
id = "*"; | ||
} | ||
App.colors = App.cable.subscriptions.create({ | ||
channel: "ColorsChannel", | ||
id: id | ||
}, { | ||
received: App.setColors | ||
}); | ||
} | ||
|
||
}).call(this); |
1 change: 1 addition & 0 deletions
1
app/assets/stylesheets/application.scss → app/assets/stylesheets/application.sass.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// Entry point for your Sass build | ||
@charset "utf-8"; | ||
|
||
@import "base/base"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
foreman start -f Procfile.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "app", | ||
"private": "true", | ||
"dependencies": { | ||
"esbuild": "^0.13.2", | ||
"sass": "^1.42.1" | ||
}, | ||
"scripts": { | ||
"build:css": "sass ./app/assets/stylesheets/application.sass.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules", | ||
"build": "esbuild app/javascript/*.* --bundle --outdir=app/assets/builds" | ||
} | ||
} |
Oops, something went wrong.