Skip to content

Commit f003807

Browse files
committed
Add .tool-versions, remove mentions of Ecto, format a few things
1 parent 7f74e10 commit f003807

File tree

18 files changed

+185
-8428
lines changed

18 files changed

+185
-8428
lines changed

.formatter.exs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[
2-
import_deps: [:ecto, :phoenix],
3-
inputs: ["*.{ex,exs}", "priv/*/seeds.exs", "{config,lib,test}/**/*.{ex,exs}"],
4-
subdirectories: ["priv/*/migrations"]
2+
import_deps: [:phoenix],
3+
inputs: ["*.{ex,exs}", "{config,lib,test}/**/*.{ex,exs}"]
54
]

.tool-versions

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
nodejs 16.17.1
1+
nodejs 16.17.1
2+
elixir 1.15.7-otp-26
3+
erlang 26.1.2

assets/css/tile_map.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ div.tile_map div.tile .tile-position {
6868
}
6969

7070
div.tile_map div.tile.tile-clear {
71-
background-color: sandybrown;
71+
background-color: white;
7272
cursor: pointer;
7373
}
7474

7575
div.tile_map div.tile div.tile-wall {
76-
background-color: saddlebrown;
76+
background-color: black;
7777
cursor: not-allowed;
7878
}
7979

assets/package-lock.json

Lines changed: 14 additions & 8270 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/config.exs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
# General application configuration
88
import Config
99

10-
# config :path_demo,
11-
# ecto_repos: [PathDemo.Repo]
12-
1310
# Configures the endpoint
1411
config :path_demo, PathDemoWeb.Endpoint,
1512
url: [host: "localhost"],
@@ -30,7 +27,6 @@ config :path_demo, PathDemo.Mailer, adapter: Swoosh.Adapters.Local
3027
# Swoosh API client is needed for adapters other than SMTP.
3128
config :swoosh, :api_client, false
3229

33-
3430
# Configure esbuild (the version is required)
3531
config :esbuild,
3632
version: "0.14.29",
@@ -41,7 +37,6 @@ config :esbuild,
4137
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
4238
]
4339

44-
4540
# Configures Elixir's Logger
4641
config :logger, :console,
4742
format: "$time $metadata[$level] $message\n",

config/dev.exs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import Config
22

3-
# Configure your database
4-
# config :path_demo, PathDemo.Repo,
5-
# username: "postgres",
6-
# password: "postgres",
7-
# database: "path_demo_dev",
8-
# hostname: "localhost",
9-
# show_sensitive_data_on_connection_error: true,
10-
# pool_size: 10
11-
123
# For development, we disable any cache and enable
134
# debugging and code reloading.
145
#

config/runtime.exs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ if System.get_env("PHX_SERVER") do
2121
end
2222

2323
if config_env() == :prod do
24-
# database_url =
25-
# System.get_env("DATABASE_URL") ||
26-
# raise """
27-
# environment variable DATABASE_URL is missing.
28-
# For example: ecto://USER:PASS@HOST/DATABASE
29-
# """
30-
31-
# maybe_ipv6 = if System.get_env("ECTO_IPV6"), do: [:inet6], else: []
32-
33-
# config :path_demo, PathDemo.Repo,
34-
# # ssl: true,
35-
# url: database_url,
36-
# pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
37-
# socket_options: maybe_ipv6
38-
3924
# The secret key base is used to sign/encrypt cookies and other secrets.
4025
# A default value is used in config/dev.exs and config/test.exs but you
4126
# want to use a different value for prod and you most likely don't want

config/test.exs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
import Config
22

3-
# Configure your database
4-
#
5-
# The MIX_TEST_PARTITION environment variable can be used
6-
# to provide built-in test partitioning in CI environment.
7-
# Run `mix help test` for more information.
8-
# config :path_demo, PathDemo.Repo,
9-
# username: "postgres",
10-
# password: "postgres",
11-
# database: "path_demo_test#{System.get_env("MIX_TEST_PARTITION")}",
12-
# hostname: "localhost",
13-
# pool: Ecto.Adapters.SQL.Sandbox
14-
153
# We don't run a server during test. If one is required,
164
# you can enable the server option below.
175
config :path_demo, PathDemoWeb.Endpoint,
186
http: [port: 4002],
197
server: false
208

219
# Print only warnings and errors during test
22-
config :logger, level: :warn
10+
config :logger, level: :warning

docker-compose.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/path_demo/astar.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ defmodule PathDemo.Astar do
206206
end
207207

208208
defp build_final_path(closed_list, origin, current, path)
209+
209210
defp build_final_path(_closed_list, [ox, oy], %{position: [ox, oy]}, final_path) do
210211
Logger.debug("[ASTAR] Finished building final path")
211212
final_path

0 commit comments

Comments
 (0)