Giter VIP home page Giter VIP logo

localparks's Introduction

LocalParks

LocalParks-CI

Find what's going on in parks around you!

Hosted on Azure: https://localparks.azurewebsites.net/

Written by Owen Steele

LocalParks API

  • Separate public API app
  • CORS enabled

Hosted on Azure: https://localparksapi.azurewebsites.net/

Features

  • ASP.NET Core, using MVC design and Razor page views

  • MSSQL database built with Entity framework Core. With IdentityDBContext

  • Has Angular 11 components to build the shopfront

  • RESTful API with JWT token Authentication

    • full functionalilty in API for querying parks, clubs, staff and events
    • CRUD capability for park events
    • Tokens generated in API and in-site.
  • Parks, Sports Club, Events and Staff views can be sorted and filtered

    • custom jQuery and AJAX used for empty field validation
    • Events can be created, edited and deleted with the site
  • ChartJS used to show report data

    • ChartBuilder built from ground up to automatically create JSON object for the JS chart, in C#
  • jQuery used for client-side validation, alongside server-side validation

UserStore and Identity

  • Can Create, Edit and Delete Users on the site

  • Users have an account domain for:

    • API Token generation
    • Seeing Orders from the Angular shopfront
    • Inspect user events scheduled, CRUD support
    • Can alter and edit User information
  • User Claims and Roles employed for Authorisation and Authentication Sitewide

localparks's People

Contributors

owensteele avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

localparks's Issues

UI issues

  • Create event - date starts a 0001 CE
  • Edit existing event, same date not allowed

Old query strings for park children

File Home/Index.cshtml

Affected lines: 15, 137, 165

  • The action links still route with "parkId" and "date" params for events, instead of "eventId". (ln# 137 and 165)

  • This is also the case for supervisors, "parkId" needs updating to "employeeId". (ln# 15)

ChartJS pie/doughnut shrink on mobile

When the view horizontal width decreases (i.e. on mobile) the Charts for Pie and Doughnut gets smaller until no longer visible.

Fixes Attempted:

ChartBuilder.cs

public ChartBuilder SetMaintainAspectRatio(bool value = false)
        {
            if (_chart.Options == null) _chart.Options = new();

            _chart.Options.MaintainAspectRatio = value;
            _chart.Options.Responsive = !value;

            return this;
        }
  • Results in chart 'falling' down screen

Still requires a solution, other rotating phone screen

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.