Giter VIP home page Giter VIP logo

sirchri / employee-shift-scheduler Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 20.0 9.04 MB

A simple employee shift scheduler, based on React, Java (SpringBoot) and PostgreSQL.

License: MIT License

HTML 0.83% CSS 2.18% TypeScript 37.16% Dockerfile 0.62% Java 59.20%
calendar docker employee-management employee-scheduling-software ical java postgresql react react-admin shift-manager shift-scheduling spring-boot webapp

employee-shift-scheduler's People

Contributors

sirchri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

employee-shift-scheduler's Issues

Error when building Docker Image

Hello,
when trying to build the Dockerimage I get the following error:

> [email protected] build
> react-scripts build

Creating` an optimized production build...
Failed to compile.

/client/src/views/calendar.tsx
TypeScript error in /client/src/views/calendar.tsx(278,9):
No overload matches this call.
  Overload 1 of 2, '(props: CalendarProps | Readonly<CalendarProps>): Calendar', gave the following error.
    Type 'Dispatch<SetStateAction<Date>>' is not assignable to type '(value: Value, event: MouseEvent<HTMLButtonElement, MouseEvent>) => void'.
      Types of parameters 'value' and 'value' are incompatible.
        Type 'Value' is not assignable to type 'SetStateAction<Date>'.
          Type 'null' is not assignable to type 'SetStateAction<Date>'.
  Overload 2 of 2, '(props: CalendarProps, context: any): Calendar', gave the following error.
    Type 'Dispatch<SetStateAction<Date>>' is not assignable to type '(value: Value, event: MouseEvent<HTMLButtonElement, MouseEvent>) => void'.  TS2769

    276 |                                                       <Calendar
    277 |                                                               showFixedNumberOfWeeks={true}
  > 278 |                                                               onChange={setCalendarValue}
        |                                                               ^
    279 |                                                               value={calendarValue}
    280 |                                                               onClickDay={(value) => {
    281 |                                                                       let calendar = calendarRef.current;


The command '/bin/sh -c npm run build' returned a non-zero code: 1
ERROR: Service 'client' failed to build : Build failed

Output of docker version

Client:
 Version:           20.10.21
 API version:       1.41
 Go version:        go1.18.1
 Git commit:        20.10.21-0ubuntu1~22.04.3
 Built:             Thu Apr 27 05:57:17 2023
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.21
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.1
  Git commit:       20.10.21-0ubuntu1~22.04.3
  Built:            Thu Apr 27 05:37:25 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.12-0ubuntu1~22.04.1
  GitCommit:
 runc:
  Version:          1.1.4-0ubuntu1~22.04.3
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:

update readme

update the readme file with the recurring event feature documentation

Docker installation (docker-compose) not working

I just cloned your repository and wanted to build the app with docker-compose. However, it fails and a lot of variables are not set.

$ docker-compose up --build
WARNING: The PSQL_ROOT_PASSWORD variable is not set. Defaulting to a blank string.
WARNING: The PSQL_USER variable is not set. Defaulting to a blank string.
WARNING: The PSQL_DATABASE variable is not set. Defaulting to a blank string.
WARNING: The PSQL_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The PSQL_DOCKER_PORT variable is not set. Defaulting to a blank string.
WARNING: The NODE_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The NODE_DOCKER_PORT variable is not set. Defaulting to a blank string.
WARNING: The CLIENT_ORIGIN variable is not set. Defaulting to a blank string.
WARNING: The SESSION_SECRET variable is not set. Defaulting to a blank string.
WARNING: The CLIENT_API_BASE_URL variable is not set. Defaulting to a blank string.
WARNING: The REACT_LOCAL_PORT variable is not set. Defaulting to a blank string.
WARNING: The REACT_DOCKER_PORT variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.client.ports contains an invalid type, it should be a number, or an object
services.psqldb.ports contains an invalid type, it should be a number, or an object
services.server.ports contains an invalid type, it should be a number, or an object

Error building docker-compose image

[build-stage 6/6] RUN npm run build:
#0 0.631
#0 0.631 > [email protected] build
#0 0.631 > react-scripts build
#0 0.631
#0 2.421 Creating an optimized production build...
#0 5.790 One of your dependencies, babel-preset-react-app, is importing the
#0 5.790 "@babel/plugin-proposal-private-property-in-object" package without
#0 5.790 declaring it in its dependencies. This is currently working because
#0 5.790 "@babel/plugin-proposal-private-property-in-object" is already in your
#0 5.790 node_modules folder for unrelated reasons, but it may break at any time.
#0 5.790
#0 5.790 babel-preset-react-app is part of the create-react-app project, which
#0 5.790 is not maintianed anymore. It is thus unlikely that this bug will
#0 5.790 ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
#0 5.790 your devDependencies to work around this error. This will make this message
#0 5.790 go away.
#0 5.790
#0 138.1 The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9 on the process.


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

add timeline action buttons

zoom/range actions (middle point is today):

  • by day
  • by week
  • by year

navigation actions:

  • move one unit right
  • mode one unit left

where unit is the current range

Docker-composer run

=> ERROR [client build-stage 6/6] RUN npm run build 138.1s

[client build-stage 6/6] RUN npm run build:
1.057
1.057 > [email protected] build
1.057 > react-scripts build
1.057
5.095 Creating an optimized production build...
8.782 One of your dependencies, babel-preset-react-app, is importing the
8.782 "@babel/plugin-proposal-private-property-in-object" package without
8.782 declaring it in its dependencies. This is currently working because
8.782 "@babel/plugin-proposal-private-property-in-object" is already in your
8.782 node_modules folder for unrelated reasons, but it may break at any time.
8.782
8.782 babel-preset-react-app is part of the create-react-app project, which
8.782 is not maintianed anymore. It is thus unlikely that this bug will
8.782 ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
8.782 your devDependencies to work around this error. This will make this message
8.782 go away.
8.782
137.6 Failed to compile.
137.6
137.6 /client/src/i18n/it.tsx
137.6 TypeScript error in /client/src/i18n/it.tsx(5,9):
137.6 Property 'update_application' is missing in type '{ add_filter: string; add: string; back: string; bulk_actions: string; cancel: string; clear_array_input: string; clear_input_value: string; clone: string; confirm: string; create: string; create_item: string; ... 25 more ...; select_columns: string; }' but required in type '{ [key: string]: string | StringMap; add_filter: string; add: string; back: string; bulk_actions: string; cancel: string; clear_array_input: string; clear_input_value: string; ... 30 more ...; update_application: string; }'. TS2741
137.6
137.6 3 | const customItalianMessages: TranslationMessages = {
137.6 4 | ra: {
137.6 > 5 | action: {
137.6 | ^
137.6 6 | add_filter: 'Aggiungi un filtro',
137.6 7 | add: 'Aggiungi',
137.6 8 | back: 'Indietro',
137.6
137.6


failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

handle system configs

new page to handle system configs. Save 'em into a new table (_sysconfig).

In particular start with this parameter:

  • exclude (hide) ranges from the timeline

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.