Skip to content

Commit d2c5d93

Browse files
authored
feat: cesium.link 2.0 (#71)
1 parent 159f267 commit d2c5d93

File tree

265 files changed

+6708
-19442
lines changed

Some content is hidden

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

265 files changed

+6708
-19442
lines changed

.dockerignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file excludes paths from the Docker build context.
2+
#
3+
# By default, Docker's build context includes all files (and folders) in the
4+
# current directory. Even if a file isn't copied into the container it is still sent to
5+
# the Docker daemon.
6+
#
7+
# There are multiple reasons to exclude files from the build context:
8+
#
9+
# 1. Prevent nested folders from being copied into the container (ex: exclude
10+
# /assets/node_modules when copying /assets)
11+
# 2. Reduce the size of the build context and improve build time (ex. /build, /deps, /doc)
12+
# 3. Avoid sending files containing sensitive information
13+
#
14+
# More information on using .dockerignore is available here:
15+
# https://docs.docker.com/engine/reference/builder/#dockerignore-file
16+
17+
.dockerignore
18+
19+
# Ignore git, but keep git HEAD and refs to access current commit hash if needed:
20+
#
21+
# $ cat .git/HEAD | awk '{print ".git/"$2}' | xargs cat
22+
# d0b8727759e1e0e7aa3d41707d12376e373d5ecc
23+
.git
24+
!.git/HEAD
25+
!.git/refs
26+
27+
# Common development/test artifacts
28+
/cover/
29+
/doc/
30+
/test/
31+
/tmp/
32+
.elixir_ls
33+
34+
# Mix artifacts
35+
/_build/
36+
/deps/
37+
*.ez
38+
39+
# Generated on crash by the VM
40+
erl_crash.dump
41+
42+
# Static artifacts - These should be fetched and built inside the Docker image
43+
/assets/node_modules/
44+
/priv/static/assets/
45+
/priv/static/cache_manifest.json

.editorconfig

-14
This file was deleted.

.env.dev.sample

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export GOOGLE_CLIENT_ID=<YOUR_GOOGLE_CLIENT_ID>
2+
export GOOGLE_CLIENT_SECRET=<YOUR_GOOGLE_CLIENT_SECRET>

.env.sample

-7
This file was deleted.

.env.stg.sample

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export DATABASE_URL=ecto://<USER>:<PASSWORD>@db:<PORT>/cesium.link_stg
2+
export GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>
3+
export GOOGLE_CLIENT_SECRET=<GOOGLE_CLIENT_SECRET>

.eslintrc.json

-23
This file was deleted.

.formatter.exs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
import_deps: [:ecto, :phoenix],
3+
plugins: [Phoenix.LiveView.HTMLFormatter, TailwindFormatter.MultiFormatter, DoctestFormatter],
4+
heex_line_length: 300,
5+
inputs: [
6+
"*.{heex,ex,exs}",
7+
"priv/*/seeds.exs",
8+
"priv/repo/seeds/*.exs",
9+
"{config,lib,test}/**/*.{heex,ex,exs}"
10+
],
11+
subdirectories: ["priv/*/migrations"]
12+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project.
3+
labels: ["enhancement"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Check for existing issues
8+
description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it.
9+
options:
10+
- label: Completed
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Describe the feature
15+
description: A clear and concise description of what you want to happen.
16+
validations:
17+
required: true
18+
- type: textarea
19+
attributes:
20+
label: |
21+
If applicable, add mockups / screenshots to help present your vision of the feature
22+
description: Drag images into the text input below.
23+
validations:
24+
required: false
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Bug Report
2+
description: Create a bug report to help us improve.
3+
labels: ["bug"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Check for existing issues
8+
description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it.
9+
options:
10+
- label: Completed
11+
required: true
12+
- type: textarea
13+
attributes:
14+
label: Describe the bug / provide steps to reproduce it
15+
description: A clear and concise description of what the bug is.
16+
validations:
17+
required: true
18+
- type: dropdown
19+
id: browsers
20+
attributes:
21+
label: What browsers are you seeing the problem on?
22+
multiple: true
23+
options:
24+
- Firefox
25+
- Chrome
26+
- Safari
27+
- Microsoft Edge
28+
- type: textarea
29+
attributes:
30+
label: If applicable, add screenshots to help explain present your vision of the bug
31+
description: Drag issues into the text input below.
32+
validations:
33+
required: false

.github/actions/action.yml

+98
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
name: Setup Elixir Project
2+
description: Checks out the code, configures Elixir, fetches dependencies, and manages build caching.
3+
inputs:
4+
otp-version:
5+
required: true
6+
type: string
7+
description: OTP version to set up
8+
elixir-version:
9+
required: true
10+
type: string
11+
description: Elixir version to set up
12+
build-deps:
13+
required: false
14+
type: boolean
15+
default: true
16+
description: True if we should compile dependencies
17+
build-app:
18+
required: false
19+
type: boolean
20+
default: true
21+
description: True if we should compile the application itself
22+
build-flags:
23+
required: false
24+
type: string
25+
default: '--all-warnings'
26+
description: Flags to pass to mix compile
27+
install-rebar:
28+
required: false
29+
type: boolean
30+
default: true
31+
description: By default, we will install Rebar (mix local.rebar --force).
32+
install-hex:
33+
required: false
34+
type: boolean
35+
default: true
36+
description: By default, we will install Hex (mix local.hex --force).
37+
cache-key:
38+
required: false
39+
type: string
40+
default: 'v1'
41+
description: If you need to reset the cache for some reason, you can change this key.
42+
runs:
43+
using: "composite"
44+
steps:
45+
- name: Setup Elixir
46+
uses: erlef/setup-beam@v1
47+
with:
48+
otp-version: ${{ inputs.otp-version }}
49+
elixir-version: ${{ inputs.elixir-version }}
50+
51+
- name: Get deps cache
52+
uses: actions/cache@v3
53+
id: deps-cache
54+
with:
55+
path: deps/
56+
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '**/mix.lock')) }}
57+
restore-keys: |
58+
${{ runner.os }}-mix-
59+
60+
- name: Get build cache
61+
uses: actions/cache@v3
62+
id: build-cache
63+
with:
64+
path: _build/${{env.MIX_ENV}}/
65+
key: build-${{ inputs.cache-key }}-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}-${{ env.MIX_ENV }}-${{ hashFiles('**/mix.lock') }}
66+
restore-keys: |
67+
build-${{ inputs.cache-key }}-${{ runner.os }}-${{ inputs.otp-version }}-${{ inputs.elixir-version }}-${{ env.MIX_ENV }}-
68+
69+
- name: Clean to rule out incremental build as a source of flakiness
70+
if: github.run_attempt != '1'
71+
run: |
72+
mix deps.clean --all
73+
mix clean
74+
shell: sh
75+
76+
- name: Install Rebar
77+
run: mix local.rebar --force
78+
shell: sh
79+
if: inputs.install-rebar == 'true'
80+
81+
- name: Install Hex
82+
run: mix local.hex --force
83+
shell: sh
84+
if: inputs.install-hex == 'true'
85+
86+
- name: Install Dependencies
87+
run: mix deps.get
88+
shell: sh
89+
90+
- name: Compile Dependencies
91+
run: mix deps.compile
92+
shell: sh
93+
if: inputs.build-deps == 'true'
94+
95+
- name: Compile Application
96+
run: mix compile ${{ inputs.build-flags }}
97+
shell: sh
98+
if: inputs.build-app == 'true'

0 commit comments

Comments
 (0)