-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
16,821 additions
and
1,592 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
AllCops: | ||
NewCops: enable | ||
Exclude: | ||
- 'lib/generators/**/*' | ||
- 'db/seeds.rb' | ||
|
||
require: rubocop-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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,8 @@ def status | |
} | ||
} | ||
end | ||
|
||
def hello_stimulus | ||
render :layout => "stimulus_application" | ||
end | ||
end |
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,8 @@ | ||
// src/controllers/hello_controller.js | ||
import { Controller } from "@hotwired/stimulus" | ||
|
||
export default class extends Controller { | ||
greet() { | ||
console.log("Hello, Stimulus!", this.element) | ||
} | ||
} |
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,9 @@ | ||
// Load all the controllers within this directory and all subdirectories. | ||
// Controller files must be named *_controller.js. | ||
|
||
import { Application } from "stimulus" | ||
import { definitionsFromContext } from "stimulus/webpack-helpers" | ||
|
||
const application = Application.start() | ||
const context = require.context("controllers", true, /_controller\.js$/) | ||
application.load(definitionsFromContext(context)) |
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,20 @@ | ||
/* eslint no-console:0 */ | ||
// This file is automatically compiled by Webpack, along with any other files | ||
// present in this directory. You're encouraged to place your actual application logic in | ||
// a relevant structure within app/javascript and only use these pack files to reference | ||
// that code so it'll be compiled. | ||
// | ||
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate | ||
// layout file, like app/views/layouts/application.html.erb | ||
|
||
|
||
// Uncomment to copy all static images under ../images to the output folder and reference | ||
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>) | ||
// or the `imagePath` JavaScript helper below. | ||
// | ||
// const images = require.context('../images', true) | ||
// const imagePath = (name) => images(name, true) | ||
|
||
console.log('Hello World from Webpacker') | ||
|
||
import "controllers" |
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,39 @@ | ||
<!DOCTYPE html> | ||
<html lang="<%= locale %>"> | ||
<head> | ||
<title> | ||
Touchpoints | ||
</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="Making customer feedback easier for federal agencies" /> | ||
<meta name="keywords" content="customer experience, CX, feedback, government, technology, civic-tech" /> | ||
<meta property="og:title" content="Touchpoints" /> | ||
<meta property="og:site_name" content="Touchpoints"> | ||
<meta property="og:description" content="Making customer feedback easier for federal agencies"> | ||
<meta property="og:type" content="website"> | ||
<meta property="og:url" content="https://touchpoints.app.cloud.gov/" /> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
<%= favicon_link_tag asset_path('favicon.ico') %> | ||
<%= stylesheet_link_tag 'application', media: 'all', integrity: true %> | ||
<%= javascript_pack_tag 'application' %> | ||
<%= render 'components/analytics/script_header' %> | ||
</head> | ||
<body> | ||
<%= render 'components/analytics/script_body' %> | ||
<%= render 'components/header' %> | ||
<% unless content_for?(:full_layout) %> | ||
<main id="main-content"> | ||
<div class="grid-container-widescreen"> | ||
<%= render('components/flash', flash: flash) unless suppress_main_layout_flash? %> | ||
<%= yield %> | ||
</div> | ||
</main> | ||
<% else %> | ||
<%= render('components/flash', flash: flash) unless suppress_main_layout_flash? %> | ||
<%= yield :full_layout %> | ||
<% end %> | ||
<%= render "components/footer" %> | ||
<%= javascript_include_tag 'uswds', integrity: true %> | ||
</body> | ||
</html> |
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,6 @@ | ||
<body> | ||
<div data-controller="hello"> | ||
<input data-hello-target="name" type="text"> | ||
<button data-action="click->hello#greet">Greet</button> | ||
</div> | ||
</body> |
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
Oops, something went wrong.