├── .env.development ├── .eslintrc ├── .github └── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── .gitignore ├── .vscode └── settings.json ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── collabcode.png ├── cypress.json ├── cypress ├── fixtures │ └── example.json ├── integration │ └── spec.js ├── plugins │ └── index.js └── support │ ├── commands.js │ └── index.js ├── docs └── ko-KR │ ├── CODE_OF_CONDUCT_ko.md │ ├── CONTRIBUTING_ko.md │ └── README_ko.md ├── package-lock.json ├── package.json ├── prettier.config.js ├── rollup.config.js ├── src ├── client.js ├── components │ ├── ButtonCollab.svelte │ ├── ErrorCollab.svelte │ ├── FieldCollab.svelte │ ├── IconCollab.svelte │ ├── InputCollab.svelte │ ├── LabelCollab.svelte │ ├── LessonButtonCollab.svelte │ ├── LinkCollab.svelte │ ├── LogoCollab.svelte │ ├── PlayerControl.svelte │ ├── PlayerMore.svelte │ ├── SearchCollab.svelte │ ├── TagCollab.svelte │ ├── TitleCollab.svelte │ └── WarningLabel.svelte ├── config │ └── api.js ├── containers │ ├── FormConfirmation.svelte │ ├── FormLogin.svelte │ ├── FormReset.svelte │ ├── FormSignup.svelte │ ├── HeaderCollab.svelte │ ├── LessonsCollab.svelte │ ├── MenuMobile.svelte │ └── PlayerCollab.svelte ├── routes │ ├── _error.svelte │ ├── _layout.svelte │ ├── confirmation.svelte │ ├── index.svelte │ ├── login.svelte │ ├── platform │ │ ├── _layout.svelte │ │ ├── alerts.svelte │ │ ├── classroom.svelte │ │ ├── courses.svelte │ │ └── profile.svelte │ ├── reset.svelte │ └── signup.svelte ├── server.js ├── service-worker.js ├── services │ └── user.service.js └── template.html ├── static ├── favicon.png ├── global.css ├── img │ └── dark │ │ ├── icon │ │ ├── alerts-selected.svg │ │ ├── alerts.svg │ │ ├── classroom-selected.svg │ │ ├── classroom.svg │ │ ├── courses-selected.svg │ │ ├── courses.svg │ │ ├── done.svg │ │ ├── fullscreen.svg │ │ ├── fullscreen_exit.svg │ │ ├── more_vert.svg │ │ ├── pause.svg │ │ ├── play_arrow.svg │ │ ├── profile-selected.svg │ │ ├── profile.svg │ │ ├── search.svg │ │ ├── settings.svg │ │ ├── slow_motion_video.svg │ │ └── visibility.svg │ │ ├── logo-mobile.svg │ │ └── logo-sinup-login.svg ├── logo-192.png ├── logo-512.png ├── manifest.json └── styles │ ├── elements │ ├── base.css │ ├── index.css │ └── title.css │ ├── generic │ ├── index.css │ ├── reset.css │ └── scrollbar.css │ ├── objects │ ├── index.css │ └── letter.css │ └── settings │ ├── color.css │ ├── gap.css │ ├── index.css │ └── size.css └── yarn.lock /.env.development: -------------------------------------------------------------------------------- 1 | BASE_URL=http://localhost:5001/api -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parser": "babel-eslint", 3 | "parserOptions": { 4 | "sourceType": "module" 5 | }, 6 | "plugins": [ 7 | "svelte3" 8 | ], 9 | "extends": [], 10 | "rules": {} 11 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /node_modules/ 3 | /src/node_modules/@sapper/ 4 | yarn-error.log 5 | /cypress/screenshots/ 6 | /__sapper__/ 7 | .env 8 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true, 3 | "eslint.autoFixOnSave": true, 4 | "files.associations": { 5 | ".huskyrc": "json", 6 | ".lintstagedrc": "json" 7 | } 8 | } -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to make participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies within all project spaces, and it also applies when 49 | an individual is representing the project or its community in public spaces. 50 | Examples of representing a project or community include using an official 51 | project e-mail address, posting via an official social media account, or acting 52 | as an appointed representative at an online or offline event. Representation of 53 | a project may be further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at [gueio@collabcode.tech](mailto:gueio@collabcode.tech). All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | This project is released under the MPL 2.0 license. 4 | Before implementing new features and changes, feel free to [submit an issue](https://github.com/CollabCodeTech/collabcodetraining-frontend/issues/new). We're going to talk here :stuck_out_tongue_winking_eye:. 5 | 6 | ### Code of Conduct 7 | 8 | This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [gueio@collabcode.tech](mailto:gueio@collabcode.tech). 9 | 10 | ### Issues and Questions 11 | 12 | We have an official [Discord](https://discord.gg/YeeEAYj) server where we can give helpful advices if you have questions. 13 | 14 | ## How to submit a pull request? 15 | 16 | 1. Fork [this repository](https://github.com/CollabCodeTech/collabcodetraining-frontend/fork). 17 | 2. Create a new branch with the feature name. (Eg: feature/chat-support, hotfix/website-header) 18 | 3. Make your changes. 19 | 4. Commit your changes. Please follow the [styleguides](#styleguides) 20 | 5. Push your changes. 21 | 6. Submit your pull request. 22 | 23 | We use [GitFlow](https://nvie.com/posts/a-successful-git-branching-model/) so unless your PR is a `hotfix`, your feature branch must be created from the `develop` branch. 24 | 25 | **TIP:** This [Git extension](https://github.com/nvie/gitflow) makes Git Flow a piece of cake. GitKraken also has [built-in support](https://support.gitkraken.com/git-workflows-and-extensions/git-flow/) for GitFlow 26 | 27 | ## Styleguides 28 | ### Git Commit Styleguide 29 | 30 | * Use the present tense ("Add feature" not "Added feature") 31 | * Use the imperative mood ("Move cursor to..." not "Moves cursor to...") 32 | * Limit the first line to 72 characters or less 33 | * Reference issues and pull requests liberally after the first line 34 | * Consider starting the commit message with an applicable emoji: 35 | * :art: `:art:` when improving the format/structure of the code 36 | * :zap: `:zap:` when improving performance 37 | * :pencil: `:pencil:` when writing docs 38 | * :penguin: `:penguin:` when fixing something on Linux 39 | * :apple: `:apple:` when fixing something on macOS 40 | * :checkered_flag: `:checkered_flag:` when fixing something on Windows 41 | * :bug: `:bug:` when fixing a bug 42 | * :fire: `:fire:` when removing code or files 43 | * :green_heart: `:green_heart:` when fixing the CI build 44 | * :white_check_mark: `:white_check_mark:` when adding or updating tests 45 | * :lock: `:lock:` when dealing with security 46 | * :arrow_up: `:arrow_up:` when upgrading dependencies 47 | * :arrow_down: `:arrow_down:` when downgrading dependencies 48 | * :rotating_light: `:rotating_light:` when removing linter warnings 49 | * Full emoji reference in [gitmoji](https://gitmoji.carloscuesta.me/) 50 | 51 | ### FrontEnd Styleguide & Layout 52 | 53 | Please check the layout on [Figma](https://www.figma.com/file/gL5DC1W2R9zhfCRRXAjJGn/CollabWorld.training?node-id=1%3A384). You must sign in to Figma to view the layout properties. 54 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License Version 2.0 2 | ================================== 3 | 4 | 1. Definitions 5 | -------------- 6 | 7 | 1.1. "Contributor" 8 | means each individual or legal entity that creates, contributes to 9 | the creation of, or owns Covered Software. 10 | 11 | 1.2. "Contributor Version" 12 | means the combination of the Contributions of others (if any) used 13 | by a Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | means Covered Software of a particular Contributor. 17 | 18 | 1.4. "Covered Software" 19 | means Source Code Form to which the initial Contributor has attached 20 | the notice in Exhibit A, the Executable Form of such Source Code 21 | Form, and Modifications of such Source Code Form, in each case 22 | including portions thereof. 23 | 24 | 1.5. "Incompatible With Secondary Licenses" 25 | means 26 | 27 | (a) that the initial Contributor has attached the notice described 28 | in Exhibit B to the Covered Software; or 29 | 30 | (b) that the Covered Software was made available under the terms of 31 | version 1.1 or earlier of the License, but not also under the 32 | terms of a Secondary License. 33 | 34 | 1.6. "Executable Form" 35 | means any form of the work other than Source Code Form. 36 | 37 | 1.7. "Larger Work" 38 | means a work that combines Covered Software with other material, in 39 | a separate file or files, that is not Covered Software. 40 | 41 | 1.8. "License" 42 | means this document. 43 | 44 | 1.9. "Licensable" 45 | means having the right to grant, to the maximum extent possible, 46 | whether at the time of the initial grant or subsequently, any and 47 | all of the rights conveyed by this License. 48 | 49 | 1.10. "Modifications" 50 | means any of the following: 51 | 52 | (a) any file in Source Code Form that results from an addition to, 53 | deletion from, or modification of the contents of Covered 54 | Software; or 55 | 56 | (b) any new file in Source Code Form that contains any Covered 57 | Software. 58 | 59 | 1.11. "Patent Claims" of a Contributor 60 | means any patent claim(s), including without limitation, method, 61 | process, and apparatus claims, in any patent Licensable by such 62 | Contributor that would be infringed, but for the grant of the 63 | License, by the making, using, selling, offering for sale, having 64 | made, import, or transfer of either its Contributions or its 65 | Contributor Version. 66 | 67 | 1.12. "Secondary License" 68 | means either the GNU General Public License, Version 2.0, the GNU 69 | Lesser General Public License, Version 2.1, the GNU Affero General 70 | Public License, Version 3.0, or any later versions of those 71 | licenses. 72 | 73 | 1.13. "Source Code Form" 74 | means the form of the work preferred for making modifications. 75 | 76 | 1.14. "You" (or "Your") 77 | means an individual or a legal entity exercising rights under this 78 | License. For legal entities, "You" includes any entity that 79 | controls, is controlled by, or is under common control with You. For 80 | purposes of this definition, "control" means (a) the power, direct 81 | or indirect, to cause the direction or management of such entity, 82 | whether by contract or otherwise, or (b) ownership of more than 83 | fifty percent (50%) of the outstanding shares or beneficial 84 | ownership of such entity. 85 | 86 | 2. License Grants and Conditions 87 | -------------------------------- 88 | 89 | 2.1. Grants 90 | 91 | Each Contributor hereby grants You a world-wide, royalty-free, 92 | non-exclusive license: 93 | 94 | (a) under intellectual property rights (other than patent or trademark) 95 | Licensable by such Contributor to use, reproduce, make available, 96 | modify, display, perform, distribute, and otherwise exploit its 97 | Contributions, either on an unmodified basis, with Modifications, or 98 | as part of a Larger Work; and 99 | 100 | (b) under Patent Claims of such Contributor to make, use, sell, offer 101 | for sale, have made, import, and otherwise transfer either its 102 | Contributions or its Contributor Version. 103 | 104 | 2.2. Effective Date 105 | 106 | The licenses granted in Section 2.1 with respect to any Contribution 107 | become effective for each Contribution on the date the Contributor first 108 | distributes such Contribution. 109 | 110 | 2.3. Limitations on Grant Scope 111 | 112 | The licenses granted in this Section 2 are the only rights granted under 113 | this License. No additional rights or licenses will be implied from the 114 | distribution or licensing of Covered Software under this License. 115 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 116 | Contributor: 117 | 118 | (a) for any code that a Contributor has removed from Covered Software; 119 | or 120 | 121 | (b) for infringements caused by: (i) Your and any other third party's 122 | modifications of Covered Software, or (ii) the combination of its 123 | Contributions with other software (except as part of its Contributor 124 | Version); or 125 | 126 | (c) under Patent Claims infringed by Covered Software in the absence of 127 | its Contributions. 128 | 129 | This License does not grant any rights in the trademarks, service marks, 130 | or logos of any Contributor (except as may be necessary to comply with 131 | the notice requirements in Section 3.4). 132 | 133 | 2.4. Subsequent Licenses 134 | 135 | No Contributor makes additional grants as a result of Your choice to 136 | distribute the Covered Software under a subsequent version of this 137 | License (see Section 10.2) or under the terms of a Secondary License (if 138 | permitted under the terms of Section 3.3). 139 | 140 | 2.5. Representation 141 | 142 | Each Contributor represents that the Contributor believes its 143 | Contributions are its original creation(s) or it has sufficient rights 144 | to grant the rights to its Contributions conveyed by this License. 145 | 146 | 2.6. Fair Use 147 | 148 | This License is not intended to limit any rights You have under 149 | applicable copyright doctrines of fair use, fair dealing, or other 150 | equivalents. 151 | 152 | 2.7. Conditions 153 | 154 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted 155 | in Section 2.1. 156 | 157 | 3. Responsibilities 158 | ------------------- 159 | 160 | 3.1. Distribution of Source Form 161 | 162 | All distribution of Covered Software in Source Code Form, including any 163 | Modifications that You create or to which You contribute, must be under 164 | the terms of this License. You must inform recipients that the Source 165 | Code Form of the Covered Software is governed by the terms of this 166 | License, and how they can obtain a copy of this License. You may not 167 | attempt to alter or restrict the recipients' rights in the Source Code 168 | Form. 169 | 170 | 3.2. Distribution of Executable Form 171 | 172 | If You distribute Covered Software in Executable Form then: 173 | 174 | (a) such Covered Software must also be made available in Source Code 175 | Form, as described in Section 3.1, and You must inform recipients of 176 | the Executable Form how they can obtain a copy of such Source Code 177 | Form by reasonable means in a timely manner, at a charge no more 178 | than the cost of distribution to the recipient; and 179 | 180 | (b) You may distribute such Executable Form under the terms of this 181 | License, or sublicense it under different terms, provided that the 182 | license for the Executable Form does not attempt to limit or alter 183 | the recipients' rights in the Source Code Form under this License. 184 | 185 | 3.3. Distribution of a Larger Work 186 | 187 | You may create and distribute a Larger Work under terms of Your choice, 188 | provided that You also comply with the requirements of this License for 189 | the Covered Software. If the Larger Work is a combination of Covered 190 | Software with a work governed by one or more Secondary Licenses, and the 191 | Covered Software is not Incompatible With Secondary Licenses, this 192 | License permits You to additionally distribute such Covered Software 193 | under the terms of such Secondary License(s), so that the recipient of 194 | the Larger Work may, at their option, further distribute the Covered 195 | Software under the terms of either this License or such Secondary 196 | License(s). 197 | 198 | 3.4. Notices 199 | 200 | You may not remove or alter the substance of any license notices 201 | (including copyright notices, patent notices, disclaimers of warranty, 202 | or limitations of liability) contained within the Source Code Form of 203 | the Covered Software, except that You may alter any license notices to 204 | the extent required to remedy known factual inaccuracies. 205 | 206 | 3.5. Application of Additional Terms 207 | 208 | You may choose to offer, and to charge a fee for, warranty, support, 209 | indemnity or liability obligations to one or more recipients of Covered 210 | Software. However, You may do so only on Your own behalf, and not on 211 | behalf of any Contributor. You must make it absolutely clear that any 212 | such warranty, support, indemnity, or liability obligation is offered by 213 | You alone, and You hereby agree to indemnify every Contributor for any 214 | liability incurred by such Contributor as a result of warranty, support, 215 | indemnity or liability terms You offer. You may include additional 216 | disclaimers of warranty and limitations of liability specific to any 217 | jurisdiction. 218 | 219 | 4. Inability to Comply Due to Statute or Regulation 220 | --------------------------------------------------- 221 | 222 | If it is impossible for You to comply with any of the terms of this 223 | License with respect to some or all of the Covered Software due to 224 | statute, judicial order, or regulation then You must: (a) comply with 225 | the terms of this License to the maximum extent possible; and (b) 226 | describe the limitations and the code they affect. Such description must 227 | be placed in a text file included with all distributions of the Covered 228 | Software under this License. Except to the extent prohibited by statute 229 | or regulation, such description must be sufficiently detailed for a 230 | recipient of ordinary skill to be able to understand it. 231 | 232 | 5. Termination 233 | -------------- 234 | 235 | 5.1. The rights granted under this License will terminate automatically 236 | if You fail to comply with any of its terms. However, if You become 237 | compliant, then the rights granted under this License from a particular 238 | Contributor are reinstated (a) provisionally, unless and until such 239 | Contributor explicitly and finally terminates Your grants, and (b) on an 240 | ongoing basis, if such Contributor fails to notify You of the 241 | non-compliance by some reasonable means prior to 60 days after You have 242 | come back into compliance. Moreover, Your grants from a particular 243 | Contributor are reinstated on an ongoing basis if such Contributor 244 | notifies You of the non-compliance by some reasonable means, this is the 245 | first time You have received notice of non-compliance with this License 246 | from such Contributor, and You become compliant prior to 30 days after 247 | Your receipt of the notice. 248 | 249 | 5.2. If You initiate litigation against any entity by asserting a patent 250 | infringement claim (excluding declaratory judgment actions, 251 | counter-claims, and cross-claims) alleging that a Contributor Version 252 | directly or indirectly infringes any patent, then the rights granted to 253 | You by any and all Contributors for the Covered Software under Section 254 | 2.1 of this License shall terminate. 255 | 256 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all 257 | end user license agreements (excluding distributors and resellers) which 258 | have been validly granted by You or Your distributors under this License 259 | prior to termination shall survive termination. 260 | 261 | ************************************************************************ 262 | * * 263 | * 6. Disclaimer of Warranty * 264 | * ------------------------- * 265 | * * 266 | * Covered Software is provided under this License on an "as is" * 267 | * basis, without warranty of any kind, either expressed, implied, or * 268 | * statutory, including, without limitation, warranties that the * 269 | * Covered Software is free of defects, merchantable, fit for a * 270 | * particular purpose or non-infringing. The entire risk as to the * 271 | * quality and performance of the Covered Software is with You. * 272 | * Should any Covered Software prove defective in any respect, You * 273 | * (not any Contributor) assume the cost of any necessary servicing, * 274 | * repair, or correction. This disclaimer of warranty constitutes an * 275 | * essential part of this License. No use of any Covered Software is * 276 | * authorized under this License except under this disclaimer. * 277 | * * 278 | ************************************************************************ 279 | 280 | ************************************************************************ 281 | * * 282 | * 7. Limitation of Liability * 283 | * -------------------------- * 284 | * * 285 | * Under no circumstances and under no legal theory, whether tort * 286 | * (including negligence), contract, or otherwise, shall any * 287 | * Contributor, or anyone who distributes Covered Software as * 288 | * permitted above, be liable to You for any direct, indirect, * 289 | * special, incidental, or consequential damages of any character * 290 | * including, without limitation, damages for lost profits, loss of * 291 | * goodwill, work stoppage, computer failure or malfunction, or any * 292 | * and all other commercial damages or losses, even if such party * 293 | * shall have been informed of the possibility of such damages. This * 294 | * limitation of liability shall not apply to liability for death or * 295 | * personal injury resulting from such party's negligence to the * 296 | * extent applicable law prohibits such limitation. Some * 297 | * jurisdictions do not allow the exclusion or limitation of * 298 | * incidental or consequential damages, so this exclusion and * 299 | * limitation may not apply to You. * 300 | * * 301 | ************************************************************************ 302 | 303 | 8. Litigation 304 | ------------- 305 | 306 | Any litigation relating to this License may be brought only in the 307 | courts of a jurisdiction where the defendant maintains its principal 308 | place of business and such litigation shall be governed by laws of that 309 | jurisdiction, without reference to its conflict-of-law provisions. 310 | Nothing in this Section shall prevent a party's ability to bring 311 | cross-claims or counter-claims. 312 | 313 | 9. Miscellaneous 314 | ---------------- 315 | 316 | This License represents the complete agreement concerning the subject 317 | matter hereof. If any provision of this License is held to be 318 | unenforceable, such provision shall be reformed only to the extent 319 | necessary to make it enforceable. Any law or regulation which provides 320 | that the language of a contract shall be construed against the drafter 321 | shall not be used to construe this License against a Contributor. 322 | 323 | 10. Versions of the License 324 | --------------------------- 325 | 326 | 10.1. New Versions 327 | 328 | Mozilla Foundation is the license steward. Except as provided in Section 329 | 10.3, no one other than the license steward has the right to modify or 330 | publish new versions of this License. Each version will be given a 331 | distinguishing version number. 332 | 333 | 10.2. Effect of New Versions 334 | 335 | You may distribute the Covered Software under the terms of the version 336 | of the License under which You originally received the Covered Software, 337 | or under the terms of any subsequent version published by the license 338 | steward. 339 | 340 | 10.3. Modified Versions 341 | 342 | If you create software not governed by this License, and you want to 343 | create a new license for such software, you may create and use a 344 | modified version of this License if you rename the license and remove 345 | any references to the name of the license steward (except to note that 346 | such modified license differs from this License). 347 | 348 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 349 | Licenses 350 | 351 | If You choose to distribute Source Code Form that is Incompatible With 352 | Secondary Licenses under the terms of this version of the License, the 353 | notice described in Exhibit B of this License must be attached. 354 | 355 | Exhibit A - Source Code Form License Notice 356 | ------------------------------------------- 357 | 358 | This Source Code Form is subject to the terms of the Mozilla Public 359 | License, v. 2.0. If a copy of the MPL was not distributed with this 360 | file, You can obtain one at http://mozilla.org/MPL/2.0/. 361 | 362 | If it is not possible or desirable to put the notice in a particular 363 | file, then You may include the notice in a location (such as a LICENSE 364 | file in a relevant directory) where a recipient would be likely to look 365 | for such a notice. 366 | 367 | You may add additional accurate notices of copyright ownership. 368 | 369 | Exhibit B - "Incompatible With Secondary Licenses" Notice 370 | --------------------------------------------------------- 371 | 372 | This Source Code Form is "Incompatible With Secondary Licenses", as 373 | defined by the Mozilla Public License, v. 2.0. 374 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![CollabCode](collabcode.png "Logo da CollabCode") 2 | 3 | # CollabCode Training 4 | 5 | An Open Source online course platform. 6 | 7 | ## Getting Started 8 | 9 | 1. Fork this repo and clone in your machine; 10 | 11 | 2. Change directory to `collabcodetraining-frontend` where you cloned it; 12 | 13 | 3. At the terminal, run: 14 | 15 | ```bash 16 | npm install 17 | npm run dev 18 | ``` 19 | 20 | 4. Open up [localhost:3000](http://localhost:3000) and start using it 21 | 22 | This project uses Sapper for SvelteJS, if you have any doubt on how Sapper or SvelteJS works, please consult [sapper.svelte.dev](https://sapper.svelte.dev) and [svelte.dev](https://svelte.dev) for help getting started. 23 | 24 | ### Prerequisites 25 | 26 | * Npm 27 | * Node (>=10.16.3) 28 | 29 | ## Running the tests 30 | 31 | TBC 32 | 33 | ## Built With 34 | 35 | * [Sapper](https://sapper.svelte.dev) 36 | 37 | ## Contributing 38 | 39 | Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. 40 | 41 | ## Authors 42 | 43 | * **Joviane Jardim** - [@joviane](https://twitter.com/jovianejardim) 44 | * **Marco Bruno** - [@marcobrunobr](https://twitter.com/marcobrunobr) 45 | 46 | See also the list of [contributors](https://github.com/CollabCodeTech/collabcodetraining-frontend/contributors) who participated in this project. 47 | 48 | ## License 49 | 50 | This project is licensed under the MPL 2.0 License - see the [LICENSE](LICENSE) file for details 51 | 52 | ## Acknowledgments 53 | 54 | Thanks to all members of CollabCode's community for the support! We love you! 55 | -------------------------------------------------------------------------------- /collabcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CollabCodeTech/collabcodetraining-frontend/eff4a255f998ae58d6dc33c9cb0d43004926aac4/collabcode.png -------------------------------------------------------------------------------- /cypress.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "http://localhost:3000", 3 | "video": false 4 | } -------------------------------------------------------------------------------- /cypress/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io", 4 | "body": "Fixtures are a great way to mock data for responses to routes" 5 | } -------------------------------------------------------------------------------- /cypress/integration/spec.js: -------------------------------------------------------------------------------- 1 | describe('Sapper template app', () => { 2 | beforeEach(() => { 3 | cy.visit('/') 4 | }); 5 | 6 | it('has the correct

', () => { 7 | cy.contains('h1', 'Great success!') 8 | }); 9 | 10 | it('navigates to /about', () => { 11 | cy.get('nav a').contains('about').click(); 12 | cy.url().should('include', '/about'); 13 | }); 14 | 15 | it('navigates to /blog', () => { 16 | cy.get('nav a').contains('blog').click(); 17 | cy.url().should('include', '/blog'); 18 | }); 19 | }); -------------------------------------------------------------------------------- /cypress/plugins/index.js: -------------------------------------------------------------------------------- 1 | // *********************************************************** 2 | // This example plugins/index.js can be used to load plugins 3 | // 4 | // You can change the location of this file or turn off loading 5 | // the plugins file with the 'pluginsFile' configuration option. 6 | // 7 | // You can read more here: 8 | // https://on.cypress.io/plugins-guide 9 | // *********************************************************** 10 | 11 | // This function is called when a project is opened or re-opened (e.g. due to 12 | // the project's config changing) 13 | 14 | module.exports = (on, config) => { 15 | // `on` is used to hook into various events Cypress emits 16 | // `config` is the resolved Cypress config 17 | } 18 | -------------------------------------------------------------------------------- /cypress/support/commands.js: -------------------------------------------------------------------------------- 1 | // *********************************************** 2 | // This example commands.js shows you how to 3 | // create various custom commands and overwrite 4 | // existing commands. 5 | // 6 | // For more comprehensive examples of custom 7 | // commands please read more here: 8 | // https://on.cypress.io/custom-commands 9 | // *********************************************** 10 | // 11 | // 12 | // -- This is a parent command -- 13 | // Cypress.Commands.add("login", (email, password) => { ... }) 14 | // 15 | // 16 | // -- This is a child command -- 17 | // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) 18 | // 19 | // 20 | // -- This is a dual command -- 21 | // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) 22 | // 23 | // 24 | // -- This is will overwrite an existing command -- 25 | // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) 26 | -------------------------------------------------------------------------------- /cypress/support/index.js: -------------------------------------------------------------------------------- 1 | // *********************************************************** 2 | // This example support/index.js is processed and 3 | // loaded automatically before your test files. 4 | // 5 | // This is a great place to put global configuration and 6 | // behavior that modifies Cypress. 7 | // 8 | // You can change the location of this file or turn off 9 | // automatically serving support files with the 10 | // 'supportFile' configuration option. 11 | // 12 | // You can read more here: 13 | // https://on.cypress.io/configuration 14 | // *********************************************************** 15 | 16 | // Import commands.js using ES2015 syntax: 17 | import './commands' 18 | 19 | // Alternatively you can use CommonJS syntax: 20 | // require('./commands') 21 | -------------------------------------------------------------------------------- /docs/ko-KR/CODE_OF_CONDUCT_ko.md: -------------------------------------------------------------------------------- 1 | # 기여자 행동 강령 규약 2 | 3 | ## 서약 4 | 5 | 개방적이고 친근한 환경 조성을 위해, 기여자와 유지자는 프로젝트와 커뮤니티에서 6 | 연령, 신체 크기, 장애, 민족성, 성 정체성과 표현, 경력, 국적, 외모, 인종, 종교 또는 성적 정체성과 지향에 관계없이 7 | 모두에게 차별없이 참여할 것을 서약합니다. 8 | 9 | ## 표준 10 | 11 | 긍정적인 환경을 조성하기 위해 기여자가 해야 할 행동은 다음과 같습니다: 12 | 13 | * 소외하지 않고 배려하는 언어 사용 14 | * 서로 다른 경험과 관점 존중 15 | * 열린 마음으로 건설적인 비판을 수용 16 | * 커뮤니티에 가장 최선이 무엇인지에 주력 17 | * 다른 커뮤니티 구성원들에 대한 공감 표현 18 | 19 | 하지말아야 할 행동은 다음과 같습니다: 20 | 21 | * 성적인 언어와 이미지 사용, 원치않는 성적 관심이나 접근 22 | * 소모적인 논쟁, 모욕적이거나 비하하는 댓글과 개인적 또는 정치적인 공격 23 | * 공개적이거나 개인적인 괴롭힘 24 | * 동의없는 집주소 또는 전자주소 등의 개인 정보의 공개 25 | * 부적절한 것으로 간주될 수 있는 다른 행위 26 | 27 | ## 책임 28 | 29 | 프로젝트 유지자는 허용되는 행동의 기준을 명확히 해야할 책임이 있습니다. 30 | 또한, 하지말아야 할 행동에 대해 적당하고 공정한 시정 조치를 취할 것입니다. 31 | 32 | 프로젝트 유지자는 이 행동 강령을 따르지 않은 댓글, 커밋, 코드, 위키 편집, 이슈와 그 외 다른 기여를 삭제, 수정 또는 거부할 권리와 책임이 있습니다. 33 | 또한, 부적당하거나 험악하거나 공격적이거나 해롭다고 생각하는 다른 행동을 한 기여자를 일시적 또는 영구적으로 퇴장시킬 수 있습니다. 34 | 35 | ## 범위 36 | 37 | 이 행동 강령은 프로젝트 영역에 적용되며, 38 | 프로젝트 또는 커뮤니티를 대표할 경우 공개 영역에도 적용됩니다. 39 | 프로젝트 또는 커뮤니티 대표의 예로는 공식 프로젝트 이메일 주소, 공식 소셜 미디어 계정사용 또는 온/오프라인 이벤트에서 임명된 대표자의 활동이 있습니다. 40 | 프로젝트의 대표는 프로젝트 유지자에 의해 더 정의되고 명확히 될 것 입니다. 41 | 42 | ## 강제 43 | 44 | 모욕적인, 괴롭힘 또는 기타 하지말아야 할 행동을 발견하면 [gueio@collabcode.tech](mailto:gueio@collabcode.tech) 을 통해 프로젝트 팀에 보고해주세요. 45 | 모든 불만사항은 검토하고 조사한 뒤 상황에 따라 필요하고 적절하다고 생각되는 응답을 할 것 입니다. 46 | 프로젝트 팀은 사건의 보고자와 관련한 비밀을 유지할 의무가 있습니다. 구체적인 시행 정책의 자세한 사항은 별도로 게시할 수 있습니다. 47 | 48 | 행동 강령을 따르지 않거나 강제하지 않은 프로젝트 유지자는 프로젝트 리더의 다른 구성원의 결정에 따라 일시적 또는 영구적인 제재를 받을 수 있습니다. 49 | 50 | ## 참고 51 | 52 | 이 행동 강령은 기여자 규약 의 1.4 버전을 변형하였습니다. 53 | 그 내용은 https://www.contributor-covenant.org/ko/version/1/4/code-of-conduct.html 에서 확인할 수 있습니다. 54 | 55 | [homepage]: https://www.contributor-covenant.org 56 | 57 | 이 행동 강령에 대한 일반적인 질문에 대한 답변은 https://www.contributor-covenant.org/faq 에서 확인할 수 있습니다. -------------------------------------------------------------------------------- /docs/ko-KR/CONTRIBUTING_ko.md: -------------------------------------------------------------------------------- 1 | ## 기여 2 | 3 | 이 프로젝트는 MPL 2.0 라이센스에 따라 배포됩니다. 4 | 새로운 기능 및 변경 사항을 구현하기 전에, 편하게 [이슈 등록](https://github.com/CollabCodeTech/collabcodetraining-frontend/issues/new)을 해주세요. 5 | 우리는 이 곳에서 얘기할 것입니다. :stuck_out_tongue_winking_eye:. 6 | 7 | ### 행동 강령 8 | 9 | 이 프로젝트는 기여자 규약 [행동 강령](CODE_OF_CONDUCT_ko.md)을 따릅니다. 10 | 참여하기 위해서 강령을 준수해야합니다. 허용되지 않은 행동은 [gueio@collabcode.tech](mailto:gueio@collabcode.tech)로 보고바랍니다. 11 | 12 | ### 이슈와 질문 13 | 14 | 질문이 있으면 유용한 조언을 해줄 수 있는 공식 [Discord](https://discord.gg/YeeEAYj) 서버가 있습니다. 15 | 16 | ## 풀 리퀘스트를 보내는 방법 17 | 18 | 1. 포크 [해당 저장소](https://github.com/CollabCodeTech/collabcodetraining-frontend/fork). 19 | 2. 기능 이름으로 새 브랜치를 생성 (예시: feature/chat-support, hotfix/website-header) 20 | 3. 변경 21 | 4. 변경 사항을 커밋. [스타일가이드](#스타일가이드)를 참고 22 | 5. 변경 사항을 푸쉬 23 | 6. 풀리퀘스트를 제출 24 | 25 | 우리는 [GitFlow](https://nvie.com/posts/a-successful-git-branching-model/)를 사용하므로 26 | 당신의 PR이 `hotfix`가 아니라면,`develop` 브랜치로 부터 기능브랜치를 생성해야합니다. 27 | 28 | **팁:** [Git extension](https://github.com/nvie/gitflow) 는 Git flow를 쉽게 이해시켜줄 것입니다. 29 | GitKraken도 GitFlow를 위한 [built-in support](https://support.gitkraken.com/git-workflows-and-extensions/git-flow/)가 있습니다. 30 | 31 | ## 스타일가이드 32 | ### 깃 커밋 스타일 가이드 33 | 34 | * 현재 시제 사용 ("Added feature"가 아닌 "Add feature") 35 | * 명령어 사용 ("Moves cursor to..."가 아닌 "Move cursor to...") 36 | * 첫 번째 행을 72자 이하로 제한 37 | * 첫 번째 줄 이후 자유롭게 이슈 참조 및 풀리퀘스트 작성 38 | * 이모지로 커밋 메시지를 시작하는 것을 고려 : 39 | * :art: `:art:` 코드의 형식/구조 개선 시 40 | * :zap: `:zap:` 퍼포먼스 향상 시 41 | * :pencil: `:pencil:` 문서 작성 시 42 | * :penguin: `:penguin:` 리눅스에서 무언가를 고칠 시 43 | * :apple: `:apple:` 맥에서 무언가를 고칠 시 44 | * :checkered_flag: `:checkered_flag:` 윈도우에서 무언가를 고칠 시 45 | * :bug: `:bug:` 버그를 고칠 시 46 | * :fire: `:fire:` 코드나 파일을 삭제할 시 47 | * :green_heart: `:green_heart:` CI build를 고칠 시 48 | * :white_check_mark: `:white_check_mark:` 테스트를 추가하거나 업데이트할 시 49 | * :lock: `:lock:` 보안을 다룰 시 50 | * :arrow_up: `:arrow_up:` 디펜던시들을 업그레이드할 시 51 | * :arrow_down: `:arrow_down:` 디펜던시들을 다운그레이드할 시 52 | * :rotating_light: `:rotating_light:` 잔 경고들을 제거할 시 53 | * 모든 이모지들 [gitmoji](https://gitmoji.carloscuesta.me/) 54 | 55 | ### 프론트엔드 스타일가이드 & 레이아웃 56 | 57 | 레이아웃을 [Figma](https://www.figma.com/file/gL5DC1W2R9zhfCRRXAjJGn/CollabWorld.training?node-id=1%3A384) 에서 확인하세요. 58 | 레이아웃을 보려면 Figma에 로그인해야 합니다. 59 | -------------------------------------------------------------------------------- /docs/ko-KR/README_ko.md: -------------------------------------------------------------------------------- 1 | ![CollabCode](../../collabcode.png "Logo da CollabCode") 2 | 3 | # CollabCode Training 4 | 5 | 오픈소스 온라인 코스 플랫폼 6 | 7 | ## 시작하는 법 8 | 9 | 1. 이 저장소를 포크한 뒤, 당신의 컴퓨터에 클론합니다; 10 | 11 | 2. 클론한 `collabcodetraining-frontend` 디렉토리로 이동합니다; 12 | 13 | 3. 터미널에서 입력합니다: 14 | 15 | ```bash 16 | npm install 17 | npm run dev 18 | ``` 19 | 20 | 4. [localhost:3000](http://localhost:3000)을 열고 사용을 시작합니다. 21 | 22 | 이 프로젝트는 SvelteJS용 Sapper를 사용하며, Sapper 또는 SvelteJS의 작동 방식을 모르는 경우 [sapper.svelte.dev](https://sapper.svelte.dev)와 [svelte.dev](https://svelte.dev)를 참고하여 시작할 수 있습니다. 23 | 24 | ### 필수 구성 요소 25 | 26 | * Npm 27 | * Node (>=10.16.3) 28 | 29 | ## 테스트 실행 30 | 31 | TBC 32 | 33 | ## Built With 34 | 35 | * [Sapper](https://sapper.svelte.dev) 36 | 37 | ## 기여 38 | 39 | [CONTRIBUTING.md](CONTRIBUTING_ko.md)에서 행동 강령 및 풀리퀘스트 제출방식에 대한 자세한 내용을 확인바랍니다. 40 | 41 | ## Authors 42 | 43 | * **Joviane Jardim** - [@joviane](https://twitter.com/jovianejardim) 44 | * **Marco Bruno** - [@marcobrunobr](https://twitter.com/marcobrunobr) 45 | 46 | 또한, [contributors](https://github.com/CollabCodeTech/collabcodetraining-frontend/contributors)에서 이 프로젝트에 참여한 사람들을 볼 수 있습니다. 47 | 48 | ## 라이센스 49 | 50 | 이 프로젝트는 MPL 2.0 라이센스에 따라 배포됩니다. - [LICENSE](../../LICENSE) 파일에서 자세한 내용을 확인하세요. 51 | 52 | ## 감사문 53 | 54 | CollabCode 커뮤니티 모든 회원들의 도움에 감사드립니다. 사랑합니다! -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TODO", 3 | "description": "TODO", 4 | "version": "0.0.1", 5 | "scripts": { 6 | "dev": "sapper dev", 7 | "build": "sapper build --legacy", 8 | "export": "sapper export --legacy", 9 | "start": "node __sapper__/build", 10 | "cy:run": "cypress run", 11 | "cy:open": "cypress open", 12 | "test": "run-p --race dev cy:run" 13 | }, 14 | "dependencies": { 15 | "axios": "^0.19.0", 16 | "compression": "^1.7.1", 17 | "polka": "next", 18 | "sapper-environment": "^1.0.1", 19 | "sirv": "^0.4.0" 20 | }, 21 | "devDependencies": { 22 | "@babel/core": "^7.0.0", 23 | "@babel/plugin-syntax-dynamic-import": "^7.0.0", 24 | "@babel/plugin-transform-runtime": "^7.0.0", 25 | "@babel/preset-env": "^7.0.0", 26 | "@babel/runtime": "^7.0.0", 27 | "babel-eslint": "^10.0.3", 28 | "dotenv": "^8.2.0", 29 | "eslint": "^6.5.1", 30 | "eslint-config-prettier": "^6.3.0", 31 | "eslint-plugin-prettier": "^3.1.1", 32 | "eslint-plugin-svelte3": "^2.7.3", 33 | "npm-run-all": "^4.1.5", 34 | "prettier": "^1.18.2", 35 | "prettier-plugin-svelte": "^0.7.0", 36 | "pretty-quick": "^1.11.1", 37 | "rollup": "^1.12.0", 38 | "rollup-plugin-babel": "^4.0.2", 39 | "rollup-plugin-commonjs": "^10.0.0", 40 | "rollup-plugin-node-resolve": "^5.2.0", 41 | "rollup-plugin-replace": "^2.0.0", 42 | "rollup-plugin-svelte": "^5.0.1", 43 | "rollup-plugin-terser": "^4.0.4", 44 | "sapper": "^0.27.11", 45 | "svelte": "^3.0.0" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | tabWidth: 2, 3 | semi: false, 4 | singleQuote: true, 5 | trailingComma: 'es5', 6 | plugins: ['svelte'], 7 | } 8 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | import resolve from 'rollup-plugin-node-resolve' 2 | import replace from 'rollup-plugin-replace' 3 | import commonjs from 'rollup-plugin-commonjs' 4 | import svelte from 'rollup-plugin-svelte' 5 | import babel from 'rollup-plugin-babel' 6 | import { terser } from 'rollup-plugin-terser' 7 | import config from 'sapper/config/rollup.js' 8 | import pkg from './package.json' 9 | import dotenv from 'dotenv' 10 | import fs from 'fs' 11 | import path from 'path' 12 | 13 | dotenv.config() 14 | 15 | const fileEnv = process.env.NODE_ENV ? `.env.${process.env.NODE_ENV}` : '.env' 16 | 17 | // get the env variables from the .env file relative to the current NODE_ENV 18 | const ENV_VARS = dotenv.parse(fs.readFileSync(path.resolve(__dirname, fileEnv))) 19 | 20 | const valuesEnvToReplace = () => { 21 | return Object.entries(ENV_VARS).reduce((acc, [key, val]) => { 22 | acc[`process.env.${key}`] = JSON.stringify(val) 23 | return acc 24 | }, {}) 25 | } 26 | 27 | const mode = process.env.NODE_ENV 28 | const dev = mode === 'development' 29 | const legacy = !!process.env.SAPPER_LEGACY_BUILD 30 | 31 | const onwarn = (warning, onwarn) => 32 | (warning.code === 'CIRCULAR_DEPENDENCY' && 33 | /[/\\]@sapper[/\\]/.test(warning.message)) || 34 | onwarn(warning) 35 | const dedupe = importee => 36 | importee === 'svelte' || importee.startsWith('svelte/') 37 | 38 | export default { 39 | client: { 40 | input: config.client.input(), 41 | output: config.client.output(), 42 | plugins: [ 43 | replace({ 44 | 'process.browser': true, 45 | 'process.env.NODE_ENV': JSON.stringify(mode), 46 | ...valuesEnvToReplace(), 47 | }), 48 | svelte({ 49 | dev, 50 | hydratable: true, 51 | emitCss: true, 52 | }), 53 | resolve({ 54 | browser: true, 55 | dedupe, 56 | }), 57 | commonjs(), 58 | 59 | legacy && 60 | babel({ 61 | extensions: ['.js', '.mjs', '.html', '.svelte'], 62 | runtimeHelpers: true, 63 | exclude: ['node_modules/@babel/**'], 64 | presets: [ 65 | [ 66 | '@babel/preset-env', 67 | { 68 | targets: '> 0.25%, not dead', 69 | }, 70 | ], 71 | ], 72 | plugins: [ 73 | '@babel/plugin-syntax-dynamic-import', 74 | [ 75 | '@babel/plugin-transform-runtime', 76 | { 77 | useESModules: true, 78 | }, 79 | ], 80 | ], 81 | }), 82 | 83 | !dev && 84 | terser({ 85 | module: true, 86 | }), 87 | ], 88 | 89 | onwarn, 90 | }, 91 | 92 | server: { 93 | input: config.server.input(), 94 | output: config.server.output(), 95 | plugins: [ 96 | replace({ 97 | 'process.browser': false, 98 | 'process.env.NODE_ENV': JSON.stringify(mode), 99 | ...valuesEnvToReplace(), 100 | }), 101 | svelte({ 102 | generate: 'ssr', 103 | dev, 104 | }), 105 | resolve({ 106 | dedupe, 107 | }), 108 | commonjs(), 109 | ], 110 | external: Object.keys(pkg.dependencies).concat( 111 | require('module').builtinModules || 112 | Object.keys(process.binding('natives')) 113 | ), 114 | 115 | onwarn, 116 | }, 117 | 118 | serviceworker: { 119 | input: config.serviceworker.input(), 120 | output: config.serviceworker.output(), 121 | plugins: [ 122 | resolve(), 123 | replace({ 124 | 'process.browser': true, 125 | 'process.env.NODE_ENV': JSON.stringify(mode), 126 | }), 127 | commonjs(), 128 | !dev && terser(), 129 | ], 130 | 131 | onwarn, 132 | }, 133 | } 134 | -------------------------------------------------------------------------------- /src/client.js: -------------------------------------------------------------------------------- 1 | import { start, goto, prefetch, prefetchRoutes } from '@sapper/app' 2 | 3 | start({ 4 | target: document.querySelector('#sapper'), 5 | }) 6 | 7 | -------------------------------------------------------------------------------- /src/components/ButtonCollab.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/components/ErrorCollab.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | 13 | {content} 14 | -------------------------------------------------------------------------------- /src/components/FieldCollab.svelte: -------------------------------------------------------------------------------- 1 | 48 | 49 | 81 | 82 |
83 | 84 | { 96 | removeMessageError() 97 | onInput(name, value) 98 | }} /> 99 | 100 | 101 |
102 | -------------------------------------------------------------------------------- /src/components/IconCollab.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/components/InputCollab.svelte: -------------------------------------------------------------------------------- 1 | 30 | 31 | 76 | 77 | 90 | 91 | {#if name === 'password'} 92 | 97 | {/if} 98 | -------------------------------------------------------------------------------- /src/components/LabelCollab.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/components/LessonButtonCollab.svelte: -------------------------------------------------------------------------------- 1 | 6 | 7 | 41 | 42 | 43 | {String(number).padStart(3, '0')} 44 | 45 | -------------------------------------------------------------------------------- /src/components/LinkCollab.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 16 | 17 | {content} 18 | -------------------------------------------------------------------------------- /src/components/LogoCollab.svelte: -------------------------------------------------------------------------------- 1 | 8 | 9 | Logo da CollabCode 13 | -------------------------------------------------------------------------------- /src/components/PlayerControl.svelte: -------------------------------------------------------------------------------- 1 | 15 | 16 | 116 | 117 | 150 | -------------------------------------------------------------------------------- /src/components/PlayerMore.svelte: -------------------------------------------------------------------------------- 1 | 19 | 20 | 93 | 94 | 97 | 121 | 122 | 137 | 138 | -------------------------------------------------------------------------------- /src/components/SearchCollab.svelte: -------------------------------------------------------------------------------- 1 | 10 | 11 | 54 | 55 |
56 | 57 | 63 |
64 | -------------------------------------------------------------------------------- /src/components/TagCollab.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/components/TitleCollab.svelte: -------------------------------------------------------------------------------- 1 | 5 | 6 | 18 | 19 |

{content}
20 | -------------------------------------------------------------------------------- /src/components/WarningLabel.svelte: -------------------------------------------------------------------------------- 1 | 4 | 5 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/config/api.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | const api = axios.create({ 4 | baseURL: process.env.BASE_URL, 5 | withCredentials: true 6 | }) 7 | 8 | api.interceptors.response.use(response => response, error => error.response) 9 | 10 | export default api 11 | -------------------------------------------------------------------------------- /src/containers/FormConfirmation.svelte: -------------------------------------------------------------------------------- 1 | 12 | 13 | 30 | 31 |
32 | 33 | 36 | 37 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /src/containers/FormLogin.svelte: -------------------------------------------------------------------------------- 1 | 27 | 28 | 41 | 42 |