Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
69 changed files
with
11,256 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
import_deps: [:ecto, :phoenix], | ||
inputs: ["*.{ex,exs}", "{config,lib,priv,test}/**/*.{ex,exs}"], | ||
subdirectories: ["priv/*/migrations"] | ||
] |
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,40 +1,43 @@ | ||
### macOS ### | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Vim ### | ||
# swap | ||
.sw[a-p] | ||
.*.sw[a-p] | ||
# session | ||
Session.vim | ||
# temporary | ||
.netrwhist | ||
*~ | ||
# auto-generated tag files | ||
tags | ||
|
||
node_modules | ||
# The directory Mix will write compiled artifacts to. | ||
/_build/ | ||
|
||
# If you run "mix test --cover", coverage assets end up here. | ||
/cover/ | ||
|
||
# The directory Mix downloads your dependencies sources to. | ||
/deps/ | ||
|
||
# Where 3rd-party dependencies like ExDoc output generated docs. | ||
/doc/ | ||
|
||
# Ignore .fetch files in case you like to edit your project deps locally. | ||
/.fetch | ||
|
||
# If the VM crashes, it generates a dump, let's ignore it too. | ||
erl_crash.dump | ||
|
||
# Also ignore archive artifacts (built via "mix archive.build"). | ||
*.ez | ||
|
||
# Ignore package tarball (built via "mix hex.build"). | ||
turbo-*.tar | ||
|
||
# If NPM crashes, it generates a log, let's ignore it too. | ||
npm-debug.log | ||
|
||
# The directory NPM downloads your dependencies sources to. | ||
/assets/node_modules/ | ||
|
||
# Since we are building assets from assets/, | ||
# we ignore priv/static. You may want to comment | ||
# this depending on your deployment strategy. | ||
/priv/static/ | ||
|
||
# Files matching config/*.secret.exs pattern contain sensitive | ||
# data and you should not commit them into version control. | ||
# | ||
# Alternatively, you may comment the line below and commit the | ||
# secrets files as long as you replace their contents by environment | ||
# variables. | ||
/config/*.secret.exs | ||
.elixir_ls |
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 @@ | ||
# Demo | ||
|
||
To start your Phoenix server: | ||
|
||
* Install dependencies with `mix deps.get` | ||
* Create and migrate your database with `mix ecto.create && mix ecto.migrate` | ||
* Install Node.js dependencies with `cd assets && npm install && cd ..` | ||
* Start Phoenix endpoint with `mix phx.server` | ||
|
||
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. | ||
|
||
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html). | ||
|
||
## Learn more | ||
|
||
* Official website: http://www.phoenixframework.org/ | ||
* Guides: http://phoenixframework.org/docs/overview | ||
* Docs: https://hexdocs.pm/phoenix | ||
* Mailing list: http://groups.google.com/group/phoenix-talk | ||
* Source: https://github.com/phoenixframework/phoenix |
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,5 @@ | ||
{ | ||
"presets": [ | ||
"env" | ||
] | ||
} |
Binary file not shown.
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,91 @@ | ||
/* This file is for your main application css. */ | ||
|
||
@import "./phoenix.css"; | ||
@import "./live_view.css"; | ||
@import "./pacman.css"; | ||
@import "./snake.css"; | ||
@import "./thermostat.css"; | ||
|
||
pre{ | ||
padding: 1em; | ||
} | ||
.animated-sin-wave { | ||
position: relative; | ||
height: 150px; | ||
width: 100%; | ||
overflow: hidden; | ||
} | ||
|
||
.animated-sin-wave > .bar { | ||
position: absolute; | ||
height: 100%; | ||
border-radius: 50%; | ||
max-width:10px; | ||
} | ||
|
||
.animated-sin-wave-description { | ||
width:100%; | ||
text-align:center; | ||
font-size:0.8em; | ||
color:#747678; | ||
padding: 2em | ||
} | ||
|
||
.container.rainbow { | ||
max-width: 100%; | ||
text-align: center; | ||
} | ||
|
||
[data-phx-view]{ | ||
padding: 1em; | ||
} | ||
|
||
|
||
|
||
|
||
.datalist-polyfill { | ||
list-style: none; | ||
display: none; | ||
background: white; | ||
box-shadow: 0 2px 2px #999; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
margin: 0; | ||
padding: 0; | ||
max-height: 300px; | ||
overflow-y: auto; | ||
} | ||
|
||
.datalist-polyfill:empty { | ||
display: none !important; | ||
} | ||
|
||
.datalist-polyfill > li { | ||
padding: 3px; | ||
font: 13px "Lucida Grande", Sans-Serif; | ||
} | ||
|
||
.datalist-polyfill__active { | ||
background: #3875d7; | ||
color: white; | ||
} | ||
|
||
.user-row { | ||
animation: slide-up 0.4s ease; | ||
} | ||
|
||
@keyframes slide-up { | ||
0% { | ||
opacity: 0; | ||
transform: translateY(20px); | ||
} | ||
100% { | ||
opacity: 1; | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
form[phx-submit="load-more"] button { | ||
margin-bottom: 200px; | ||
} |
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,67 @@ | ||
.phx-disconnected{ | ||
cursor: wait; | ||
} | ||
.phx-disconnected *{ | ||
pointer-events: none; | ||
} | ||
.phx-disconnected::before{ | ||
-webkit-animation-play-state: running; | ||
animation-play-state: running; | ||
opacity: 1; | ||
content: ""; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(255, 255, 255, .5); | ||
height: 100%; | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
@-webkit-keyframes phx-spinner { | ||
0% { | ||
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg); | ||
transform: translate3d(-50%, -50%, 0) rotate(0deg); | ||
} | ||
100% { | ||
-webkit-transform: translate3d(-50%, -50%, 0) rotate(360deg); | ||
transform: translate3d(-50%, -50%, 0) rotate(360deg); | ||
} | ||
} | ||
@keyframes phx-spinner { | ||
0% { | ||
-webkit-transform: translate3d(-50%, -50%, 0) rotate(0deg); | ||
transform: translate3d(-50%, -50%, 0) rotate(0deg); | ||
} | ||
100% { | ||
-webkit-transform: translate3d(-50%, -50%, 0) rotate(360deg); | ||
transform: translate3d(-50%, -50%, 0) rotate(360deg); | ||
} | ||
} | ||
|
||
.phx-disconnected::after { | ||
-webkit-animation: 0.8s linear infinite phx-spinner; | ||
animation: 0.8s linear infinite phx-spinner; | ||
-webkit-animation-play-state: inherit; | ||
animation-play-state: inherit; | ||
border: solid 3px #dedede; | ||
border-bottom-color: #0069d9; | ||
border-radius: 50%; | ||
content: ""; | ||
height: 40px; | ||
left: 50%; | ||
opacity: inherit; | ||
position: absolute; | ||
top: 50%; | ||
-webkit-transform: translate3d(-50%, -50%, 0); | ||
transform: translate3d(-50%, -50%, 0); | ||
width: 40px; | ||
will-change: transform; | ||
} | ||
|
||
|
||
.phx-error { | ||
background: #ffe6f0!important; | ||
} | ||
|
Oops, something went wrong.