Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
  • Loading branch information
zin-lin committed Dec 10, 2023
0 parents commit b71dce4
Show file tree
Hide file tree
Showing 92 changed files with 31,544 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DANGEROUSLY_DISABLE_HOST_CHECK=true
1 change: 1 addition & 0 deletions .firebase/hosting.WQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
index.html,1700243736320,e6827d8dda22401e6be53f136a79ce28883c07b995700d89eceb07f70782b051
35 changes: 35 additions & 0 deletions .firebase/hosting.YnVpbGQ.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
favicon.ico,1697783752061,eae62e993eb980ec8a25058c39d5a51feab118bd2100c4deebb2a9c158ec11f9
logo.ico,1697783752061,c6e9db4ff8f1c43fe9ef9fef25c2e61f72f42e0d6c4a31d1b471883cfd815012
logo.png,1697783752062,d843ef2fa7adcc83b8fe93773ebab822736ab2afa670d5ea545aeab87d51b127
logo192.png,1697783752062,3ee59515172ee198f3be375979df15ac5345183e656720a381b8872b2a39dc8b
logo512.png,1697783752063,ee7e2f3fdb8209c4b6fd7bef6ba50d1b9dba30a25bb5c3126df057e1cb6f5331
manifest.json,1697783752063,2759dc5d2159a8089236b432d6383c0c152eca40a1dc9f34d0d222c7fd7b9f35
robots.txt,1697783752063,b2090cf9761ef60aa06e4fab97679bd43dfa5e5df073701ead5879d7c68f1ec5
asset-manifest.json,1700497326592,a51f9641f6f807f2b8b4a6ecf5fab6808dfd15878a5b3541694eb8826c16e753
index.html,1700497326592,921c6cacfd6f252a598d6c364d7e5b52a2d3e9bce10ba43e0388dd326e7eda1b
static/js/787.22103d49.chunk.js,1700497326592,fc7209e72f3fc90276d77868b65d577fec16e775bc441d761c6e3dd94b1863cf
static/css/main.fe6cb3de.css,1700497326593,950978fc6eb5e46a332721f03e3bcc0fd471cf8a4394632132afa53b1fce4543
static/js/main.631fd249.js.LICENSE.txt,1700497326592,2b5842c5a6c3fccc8625be8dbfb60aa16c840e8d9563953495848776fc74d037
static/js/787.22103d49.chunk.js.map,1700497326592,47ef4443bbf4f2197dcceb6fdb17df6f5eae13c62597e20cc3402ba48b1bdecd
static/css/main.fe6cb3de.css.map,1700497326592,66b880350d418b4dfeba59c4313b5b9808d899b7704f245ff356f579fae8c7ab
static/media/box.74913d96633847bdd5de.png,1700497326581,42f4ebcf188ffca9732d308fd68eb381aa99ab4da7943c81a8de28e4040578f2
static/media/loading.88b9b742d5e2534c0e62.gif,1700497326582,6a407c85f7a82010aecccd0ce2df77692bf88bb9e145ce667b7bd64b7138a9bd
static/media/book.1f9650abd36f9d59751b.png,1700497326581,3648ece8621a94249b935f56d6b709b273c51c3b47fdd790a65336d1bfd1eb88
static/media/scene.6e69bcbd7c5335c7e05d.png,1700497326592,71acae33a1d34f5d4f1eafafa151441292fbbdc8a4adcf97bca5063659489809
static/media/user.f74ea0265518d60185c9.png,1700497326592,735bb994fa0afc11a15add69c782d0af4ad5373469d9589ef6de5d375ff94c31
static/media/tro.48cc6581e39155878fb4.png,1700497326592,f91ee11f5fafee0b006cb8e157d45c6f5945db13eab4db9338463978ddeb38fe
static/media/code.0b2fcdfd708df9f5d719.jpg,1700497326581,f8340ffaadccf3fd536f8fa047bb8ea33def755d5d66efafdd97ec70659d2ca5
static/js/main.631fd249.js,1700497326592,aae8ee26e457fa274e4806f535bbc3fcf11f7e5393b84e10f708737f3bd6aa3d
static/media/cmx.161017aedea2559d09f2.png,1700497326581,4c13854091a32170845efa8c8b1a0f29ee39e74b5996b7bd04b1e0460757d2d9
static/media/dar.df98d553d44eaec712a9.png,1700497326581,169852fe6adef129bf4d547e0914308a68bd80f3ae161520f15edd131b73a424
static/media/shelby.556873bb32ee48e78e96.png,1700497326592,d04db71416378ca9a7af2abfddc90660435974e28df6153d521dbadb507b3fea
static/media/bookbg.22df900317f40b9f2fcb.png,1700497326581,51da71ef6d86482c91b9ce348e7d1c7eb16aae70a0afed38f6228bc7d77d5883
static/media/beach.ba91cdb36526cdaca0be.png,1700497326581,7493a5ec5ae868bdd245dbb73383577a0d33d2aa92f0d89b67fc77b5c424c82e
static/media/girl.56a34f122e9bc96e4329.png,1700497326582,2ce12f2bd015912453eb34a021f5397cd658bb6b63cdbcbaf2a35f0cd4c283c2
static/media/str.0faf975e0314a810b992.png,1700497326581,a16e4e430bb8cff98217f2d0b5b776c75a9b6acb9831231baa3518f98cfcaf89
static/media/feb.0f1b98d6c54835f50b7a.png,1700497326583,ec647806c5d85da13473675f3e755c81fd885c85cc1887076f9962ac7a969755
static/media/jan.c371255658149cec2f6e.png,1700497326582,4f7fb3e47720ce65e8ca254015fe4a152c3b51935724c22b17f9c4880bf9e713
static/media/mar.cf9445e16075d22cbf8d.png,1700497326583,8ab2b6ac5ff0eb0e6df4096e7755369d19ce9f869cca2dfe7c3de3f937283282
static/media/comp.e3658c2f36489ee25215.png,1700497326582,19789425ec646630d980b2b8b3c2d176a1af9c7ad9b05884f01eb13909167f05
static/js/main.631fd249.js.map,1700497326593,1d858dae1e2c1b31823781f0361c43aed2ef2bf0199032b8c7c8ba9538f66a0d
static/media/jedi.8761efd96c97b3425321.png,1700497326582,a446212dc4e9c5fa731cb73a5d0cecb7c31c98db18c3969d244680be19c84f6a
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "comicsx-be12b"
}
}
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag webpackage-enucs
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

/.idea
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:latest

WORKDIR /app
COPY package.json .

RUN npm install

#all needed
COPY . .
EXPOSE 3000
#react-app:: port :: 3000
CMD ["npm", "start"]
201 changes: 201 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: npm start
10 changes: 10 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# COMICSX Frontend

- Built with `React` and `tsx`
- `Typescript`
- `released`
- `built`
- deployed at `http://webtech-2324-25.napier.ac.uk`
- deployed at `https://annexcomicsx-343feca28f90.herokuapp.com/`
- docker built
- workflow `succeeded`
14 changes: 14 additions & 0 deletions css.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare module '*.scss' {
const css: { [key: string]: string };
export default css;
}
declare module '*.sass' {
const css: { [key: string]: string };
export default css;
}
declare module 'react-markup';
declare module '*.webp';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.js';
17 changes: 17 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]

}
}
Loading

0 comments on commit b71dce4

Please sign in to comment.