Skip to content

Commit d66772c

Browse files
committed
initial commit
1 parent f70e1f0 commit d66772c

File tree

221 files changed

+574
-19386
lines changed

Some content is hidden

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

221 files changed

+574
-19386
lines changed

.dockerignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Include any files or directories that you don't want to be copied to your
2+
# container here (e.g., local build artifacts, temporary files, etc.).
3+
#
4+
# For more help, visit the .dockerignore file reference guide at
5+
# https://docs.docker.com/go/build-context-dockerignore/
6+
7+
**/.classpath
8+
**/.dockerignore
9+
**/.env
10+
**/.git
11+
**/.gitignore
12+
**/.project
13+
**/.settings
14+
**/.toolstarget
15+
**/.vs
16+
**/.vscode
17+
**/.next
18+
**/.cache
19+
**/*.*proj.user
20+
**/*.dbmdl
21+
**/*.jfm
22+
**/charts
23+
**/docker-compose*
24+
**/compose*
25+
**/Dockerfile*
26+
**/node_modules
27+
**/npm-debug.log
28+
**/obj
29+
**/secrets.dev.yaml
30+
**/values.dev.yaml
31+
**/build
32+
**/dist
33+
.env
34+
.env.development.local
35+
.env.test.local
36+
.env.production.local
37+
.env.local
38+
LICENSE
39+
README.md

.eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
7+
overrides: [
8+
{
9+
env: {
10+
node: true,
11+
},
12+
files: [".eslintrc.{js,cjs}"],
13+
parserOptions: {
14+
sourceType: "script",
15+
},
16+
},
17+
],
18+
parser: "@typescript-eslint/parser",
19+
parserOptions: {
20+
ecmaVersion: "latest",
21+
sourceType: "module",
22+
},
23+
plugins: ["@typescript-eslint"],
24+
rules: {
25+
"@typescript-eslint/no-explicit-any": "off",
26+
"no-unused-vars": "off",
27+
"@typescript-eslint/no-unused-vars": "off",
28+
"@typescript-eslint/no-this-alias": "warn"
29+
},
30+
};

.github/ISSUE_TEMPLATE/bug_report.md

-39
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
assignees: ["nixrajput"]
6+
body:
7+
- type: input
8+
id: contact
9+
attributes:
10+
label: Contact Details
11+
description: How can we get in touch with you if we need more info?
12+
placeholder: ex. [email protected]
13+
validations:
14+
required: false
15+
- type: textarea
16+
id: what-happened
17+
attributes:
18+
label: What happened?
19+
description: Also tell us, what did you expect to happen?
20+
placeholder: Tell us what you see!
21+
validations:
22+
required: true
23+
- type: dropdown
24+
id: devices
25+
attributes:
26+
label: What devices are you seeing the problem on?
27+
multiple: true
28+
options:
29+
- Android
30+
- iPhone
31+
- Windows
32+
- Mac
33+
- Linux
34+
validations:
35+
required: true
36+
- type: input
37+
id: os
38+
attributes:
39+
label: OS Version
40+
description: On what version of OS is your device running?
41+
placeholder: Android 12
42+
validations:
43+
required: true
44+
- type: textarea
45+
id: logs
46+
attributes:
47+
label: Relevant log output
48+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
49+
render: shell
50+
- type: checkboxes
51+
id: terms
52+
attributes:
53+
label: Code of Conduct
54+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/nixrajput/flutter_carousel_widget/CODE_OF_CONDUCT.md).
55+
options:
56+
- label: I agree to follow this project's Code of Conduct
57+
required: true
58+
- type: markdown
59+
attributes:
60+
value: "## Thanks for taking the time to fill out this bug report!"
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[Feature Request]: "
4+
labels: ["enhancement"]
5+
assignees:
6+
- nixrajput
7+
body:
8+
- type: input
9+
id: contact
10+
attributes:
11+
label: Contact Details
12+
description: How can we get in touch with you if we need more info?
13+
placeholder: ex. [email protected]
14+
validations:
15+
required: false
16+
- type: textarea
17+
id: feature
18+
attributes:
19+
label: Is your feature request related to a problem? Please describe.
20+
description: A clear and concise description of what the problem is.
21+
placeholder: Write here
22+
validations:
23+
required: true
24+
- type: textarea
25+
id: solution
26+
attributes:
27+
label: Describe the solution you'd like
28+
description: A clear and concise description of what you want to happen.
29+
placeholder: Write here
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: alternatives
34+
attributes:
35+
label: Describe alternatives you've considered
36+
description: A clear and concise description of any alternative solutions or features you've considered.
37+
placeholder: Write here
38+
validations:
39+
required: true
40+
- type: textarea
41+
id: additional-context
42+
attributes:
43+
label: Additional context
44+
description: Add any other context or screenshots about the feature request here.
45+
placeholder: Write here
46+
- type: checkboxes
47+
id: terms
48+
attributes:
49+
label: Code of Conduct
50+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/nixrajput/flutter_carousel_widget/CODE_OF_CONDUCT.md).
51+
options:
52+
- label: I agree to follow this project's Code of Conduct
53+
required: true
54+
- type: markdown
55+
attributes:
56+
value: "## Thanks for taking the time to fill out this feature request form!"

Dockerfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# use the official Bun image
2+
# see all versions at https://hub.docker.com/r/oven/bun/tags
3+
FROM oven/bun:1 as base
4+
WORKDIR /usr/src/app
5+
6+
# install dependencies into temp directory
7+
# this will cache them and speed up future builds
8+
FROM base AS install
9+
RUN mkdir -p /temp/dev
10+
COPY package.json bun.lockb /temp/dev/
11+
RUN cd /temp/dev && bun install --frozen-lockfile
12+
13+
# install with --production (exclude devDependencies)
14+
RUN mkdir -p /temp/prod
15+
COPY package.json bun.lockb /temp/prod/
16+
RUN cd /temp/prod && bun install --frozen-lockfile --production
17+
18+
# copy node_modules from temp directory
19+
# then copy all (non-ignored) project files into the image
20+
FROM base AS prerelease
21+
COPY --from=install /temp/dev/node_modules node_modules
22+
COPY . .
23+
24+
# [optional] tests & build
25+
# ENV NODE_ENV=production
26+
# RUN bun test
27+
# RUN bun run build
28+
29+
# copy production dependencies and source code into final image
30+
FROM base AS release
31+
COPY --from=install /temp/prod/node_modules node_modules
32+
COPY --from=prerelease /usr/src/app/src/ .
33+
COPY --from=prerelease /usr/src/app/package.json .
34+
35+
# run the app
36+
# USER bun
37+
EXPOSE 4000/tcp
38+
ENTRYPOINT [ "bun", "run", "index.ts" ]

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Nikhil Rajput
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)