Coder Social home page Coder Social logo

leonard-thieu / crypt.toofz.com Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 618 KB

Crypt of the NecroDancer information website.

Home Page: https://crypt.toofz.com/

License: MIT License

HTML 9.99% C# 6.45% CSS 5.12% TypeScript 76.09% JavaScript 2.25% PowerShell 0.10%
toofz necrodancer crypt-of-the-necrodancer asp-net-mvc angularjs

crypt.toofz.com's Introduction

toofz

Build status codecov

Overview

toofz is a Crypt of the NecroDancer information website, featuring information on items and enemies, fast and easy to navigate leaderboards, and player profiles which showcase a player's personal bests.

This repo contains the frontend which is an AngularJS-based Single-Page Application (SPA) written in TypeScript. It uses ASP.NET Core as a thin supporting layer and relies on toofz API for data.


Information about other projects that support toofz can be found in the meta-repository.

Dependencies

Requirements

  • .NET Core 2.0

Contributing

Contributions are welcome for toofz.

  • Want to report a bug or request a feature? File a new issue.
  • Join in design conversations.
  • Fix an issue or add a new feature.
    • Aside from trivial issues, please raise a discussion before submitting a pull request.

Development

Depending on what code you're working with, you may need to be familiar with TypeScript, SCSS, AngularJS, or AngularUI Router. Otherwise, knowledge of JavaScript or CSS can be sufficient for many tasks.

Requirements

  • Visual Studio 2017
  • Node.js
  • WebStorm (optional) - Visual Studio can be flaky in how it handles TypeScript. WebStorm is recommended for editing TypeScript files.

Getting started

From the src/toofz.NecroDancer.Web directory, run:

npm install
npm run build-dev

You may now start the application through Visual Studio.

In order to run tests, run:

npm run build-dev-test
npm test

Scripts that produce optimized code ready for production (build-prod and build-prod-test) are also available.

Note: Test build scripts produce slightly different output for app.js (code is instrumented and wrapped to make it easier to test). This means that if you've built a non-test build and you want to test, you must run a test build script. Likewise, if you've built a test build and you want to view the site in your browser, you must run a non-test build script.

To view a code coverage report (after running tests), run:

npm run report

This will open a code coverage report in your browser.

Repository layout

  • wwwroot
    • app - build output directory
  • lib - customized 3rd party libraries
  • src
    • characters - character icons (used in the leaderboards dropdown and on the leaderboards page)
    • currency - currency icons (used on items, enemies, and leaderboard pages)
    • dropdown - dropdown menu (used in the navbar)
    • enemies - enemy section
    • entry-filters - AngularJS filters that formats leaderboard entry data for display
    • items - item section
    • landing - landing page
    • leaderboard - displays leaderboard entries
    • leaderboards - leaderboards search page
    • navbar - main navigation element featured at the top of every page
    • ordinal - AngularJS filter that formats leaderboard entry rank as an ordinal (used on the profile page)
    • otherwise - page served when a URL cannot be routed to
    • page-title - service that manages changes to the page title
    • pagination - pagination controls
    • profile - player profile section
    • root - root template and route
    • search - search feature
    • slug - AngularJS filter that formats player names into URL slugs
    • titlecase - AngularJS filter that formats a string in titlecase
    • toofz-rest-api - toofz API client
    • app.module.ts - main entry point
    • app.scss - site-wide styles
  • test
    • src - structure mirrors that of src
  • Views

License

toofz is released under the MIT License.

crypt.toofz.com's People

Contributors

leonard-thieu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

crypt.toofz.com's Issues

Improve mobile experience

Navigation

The navmenu expects users to hover in order to navigate through submenus. Hovering is accomplished by holding on mobile but this is slow and unintuitive.

screenshot_2017-11-18-16-58-10

The behavior on Wawa could be mimicked to provide a better experience. Wawa allows tapping to open up submenus. Submenus are also clearly delineated.

screenshot_2017-11-18-17-05-33

Layout

Many elements don't fit properly or fit poorly.

screenshot_2017-11-18-16-58-47
screenshot_2017-11-18-16-58-52

Potential solutions include reducing the amount of data shown or increasing the density (reduced padding).

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.