Skip to content

Commit

Permalink
Merge pull request #86 from michal367/develop
Browse files Browse the repository at this point in the history
First milestone
  • Loading branch information
michal367 authored Apr 14, 2021
2 parents ba5ed76 + 55206b1 commit 7e0899c
Show file tree
Hide file tree
Showing 60 changed files with 20,763 additions and 2 deletions.
191 changes: 191 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
# 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*


*.orig
*.pyc
*.swp

/.cargo_home/
/.idea/
/.vscode/
gclient_config.py_entries
/gh-pages/
/target/
/std/hash/_wasm/target
/tools/wpt/manifest.json

# compiled wasm files
std/wasi/testdata/snapshot_preview1/

# generated v8 coverage files
cli/tests/.test_coverage/

# MacOS generated files
.DS_Store
.DS_Store?


### react ###
.DS_*
*.log
logs
**/*.backup.*
**/*.back.*

bower_components

*.sublime*

psd
thumb
sketch


### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env*.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Storybook build outputs
.out
.storybook-out
storybook-static

# rollup.js default build output
dist/

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Temporary folders
tmp/
temp/

# Deno settings
server/.vscode/
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"tabWidth": 4
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# OI-Project

## Software Engineering Project
### App for supporting lecturers
The main goals of this app is to provide a way to:

- encourage students to actively participate by asking simple questions
- gather students` *reactions* during on-line lecture, which gives the lecturers feedback they lack
- gather students' reactions during on-line lecture, which gives the lecturers feedback they lack
57 changes: 57 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const path = require('path');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');

cmd = getFileName(process.argv[1]);
src_dir = process.argv[2];
build_dir = process.argv[3];
public_dir = "public";

console.log("cmd:", cmd);
console.log("src dir:", src_dir);
if(cmd == "build.js")
console.log("build dir:", build_dir);

if(typeof src_dir === 'undefined' || cmd == "build.js" && typeof build_dir === 'undefined'){
console.log("Not all arguments were provided");
process.exit(1);
}


module.exports = {
paths: function (paths, env) {
paths.appIndexJs = path.resolve(__dirname, src_dir + '/index.tsx');
paths.appSrc = path.resolve(__dirname, src_dir);
paths.testsSetup = path.resolve(__dirname, src_dir + '/setupTests.ts');
paths.proxySetup = path.resolve(__dirname, src_dir + '/setupProxy.js');
paths.swSrc = path.resolve(__dirname, src_dir + '/service-worker.ts');
paths.appTypeDeclarations = path.resolve(__dirname, src_dir + '/react-app-env.d.ts');
if(cmd == "build.js")
paths.appBuild = path.resolve(__dirname, build_dir);
paths.appPublic = path.resolve(__dirname, public_dir);
paths.appHtml = path.resolve(__dirname, public_dir + '/index.html');
return paths;
},
webpack: function (config, env) {
config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin));
return config;
},
jest: function(config) {
let src_dir_in = src_dir;
if(src_dir.indexOf('/') != -1)
src_dir_in = src_dir.split('/')[1];

config.roots = ['<rootDir>/' + src_dir_in],
config.collectCoverageFrom = [src_dir_in + '/**/*.{js,jsx,ts,tsx}', '!' + src_dir_in + '/**/*.d.ts'];
config.setupFilesAfterEnv = ['<rootDir>/' + src_dir_in + '/setupTests.ts'];
config.testMatch = [
'<rootDir>/' + src_dir_in + '/**/__tests__/**/*.{js,jsx,ts,tsx}',
'<rootDir>/' + src_dir_in + '/**/*.{spec,test}.{js,jsx,ts,tsx}',
];
return config;
}
}


function getFileName(path){
return path.split('\\').pop().split('/').pop();
}
Loading

0 comments on commit 7e0899c

Please sign in to comment.