Coder Social home page Coder Social logo

dailybruin / lux Goto Github PK

View Code? Open in Web Editor NEW
6.0 10.0 5.0 44.23 MB

Lux is a design system for the Daily Bruin.

Home Page: https://lux.dailybruin.com

License: GNU General Public License v3.0

TypeScript 79.13% JavaScript 1.02% MDX 19.85%
design-system

lux's Introduction

Lux

npm Build Status codecov dependencies Status devDependencies Status code style: prettier tested with jest Commitizen friendly license

Lux is a design system for the Daily Bruin, written in TypeScript and React.

You may also be interested in projects that use Lux, which include our gatsby starter and dailybruin.com's frontend.

Usage

To use Lux, simply install it with your favorite package manager, e.g.:

yarn add @dailybruin/lux

Import components with the following syntax:

import { Article } from '@dailybruin/lux'

Note that Lux is published as TypeScript files, and thus is only available to projects that use TypeScript and some kind of build system (e.g., Webpack). If you run into errors setting Lux up with your project, please file an issue.

Development

To start a dev server for the docs:

yarn start

To test:

yarn test

Deployment

Lux is autopublished to npm by Travis with semantic-release and travis build stages. Tokens were set up with semantic-release-cli (semantic-release-cli setup), using dailybruin-bot's npm and GitHub credentials.

yarn publish

To build the docs:

yarn build:docs

lux's People

Contributors

nathanmsmith avatar renovate[bot] avatar tom22ger avatar zeehang avatar ryang72 avatar mindip avatar sarahc7 avatar brysonxiao avatar dustinnewman avatar renovate-bot avatar seichang00 avatar aaronlimwk avatar dailybruin-bot avatar

Stargazers

Tommy Vo Tran avatar Poren Chiang avatar Dylan Momplaisir avatar  avatar Evan Conkle avatar  avatar

Watchers

James Cloos avatar Rohit Tavare avatar Neil Prajapati avatar Carter Bian avatar Sarthak More avatar  avatar Christopher Aziz avatar  avatar Max Wu avatar  avatar

lux's Issues

refactor main site link

planned: mainsitearticleheader uses a ton of links with

text-decoration: none;
                color: ${dailyBruinBlue};

                :hover {
                  opacity: 0.75;
 }

We can refactor this into a MainSiteLink component - because link behavior and appearance in body text should be consistent across the entire site to promote good UX

Importing lux - webfont error

Trying to use Lux footer inside the main site app but running into an issue where webfontloader leads to a compilation issue.

Add custom css props to all lux components

We should be able to add custom css to lux components. This should be done through an additional style prop that takes a string.

An example to look would look like this:

<Image
  url="http://dailybruin.com/images/2018/10/web.sp_.mwp_.nbk_.ADX_-640x461.jpg"
  caption="Freshman attacker Ashworth Molthen has registered 21 goals on the season, finding the back of the net in 13 of the 16 games so far this year for UCLA men’s water polo. UCLA is one of two teams remaining in the MPSF conference that remains undefeated."
  credit="Amy Dixon/Photo editor"
  alt="Ashworth Molthen playing water polo."
  style={css`
    color: red;
  `}
/>

You'll want to check out the emotion docs on composition.

Create review/sports info box component

ARTS BOX - example at https://dailybruin.com/2018/10/05/album-review-twenty-one-pilots-trench-falls-flat-fails-to-produce-a-variety-of-sounds/
Needs

  • Review title (required)
  • Custom Line 1 (optional)
  • Custom Line 2 (optional)
  • Date (required)
  • Rating (out of 5) (required)

SPORTS BOX - example at http://dailybruin.com/2018/11/05/womens-volleyball-defeats-oregon-state-falls-to-oregon/

  • Sport name (required)
  • Team 1 (required)
  • Team 2 (required)
  • Team 1 score (required)
  • Team 2 score (required)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm react-testing-library Unavailable
npm travis-deploy-once Unavailable
npm tslint Unavailable
npm tslint-react Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency docz to v2
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency semantic-release to v24
  • chore(deps): update dependency tslint to v6
  • chore(deps): update dependency tslint-react to v5
  • chore(deps): update dependency webpack to v5
  • chore(deps): update react monorepo to v18 (major) (@types/react, @types/react-dom, react, react-dom)
  • fix(deps): update dependency d3 to v7
  • fix(deps): update dependency react-helmet to v6 (react-helmet, @types/react-helmet)
  • fix(deps): update dependency react-string-replace to v1
  • fix(deps): update dependency typescript to v5
  • fix(deps): update font awesome to v6 (major) (@fortawesome/fontawesome-svg-core, @fortawesome/free-solid-svg-icons)
  • πŸ” Create all rate-limited PRs at once πŸ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @fortawesome/fontawesome-svg-core ^1.2.8
  • @fortawesome/free-solid-svg-icons ^5.5.0
  • @fortawesome/react-fontawesome ^0.1.3
  • @hbetts/parse-repository-url 2.1.2
  • d3 ^5.9.1
  • emotion ^9.2.12
  • emotion-server ^9.2.12
  • gatsby-plugin-emotion ^2.0.6
  • lodash.uniq ^4.5.0
  • plyr ^3.4.7
  • react 16.8.6
  • react-dom 16.8.6
  • react-emotion ^9.2.12
  • react-helmet ^5.2.0
  • react-player 2.14.1
  • react-plyr ^2.1.1
  • react-string-replace 0.4.4
  • slugify ^1.3.3
  • typescript 3.4.4
  • webfontloader ^1.6.28
  • @mdx-js/react 1.0.20
  • @types/jest 23.3.12
  • @types/react 16.7.18
  • @types/react-dom 16.0.11
  • @types/react-helmet 5.0.8
  • @types/webfontloader 1.6.29
  • commitizen 3.0.5
  • cz-conventional-changelog 2.1.0
  • docz 1.2.0
  • docz-plugin-css 0.11.0
  • docz-plugin-netlify 1.1.4
  • docz-theme-default 1.2.0
  • eclint 2.8.1
  • gatsby 2.0.89
  • husky 1.3.1
  • jest 23.6.0
  • jest-emotion 9.2.11
  • lint-staged 8.1.0
  • react-testing-library 5.4.4
  • semantic-release 15.13.2
  • travis-deploy-once 5.0.11
  • ts-jest 23.10.5
  • tslint 5.16.0
  • tslint-config-prettier 1.17.0
  • tslint-eslint-rules 5.4.0
  • tslint-react 3.6.0
  • webpack ^4.28.4
travis
.travis.yml

  • Check this box to trigger a request for Renovate to run again on this repository

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Dependency deprecation warning: travis-deploy-once (npm)

On registry https://registry.npmjs.org/, the "latest" version (v5.0.11) of dependency travis-deploy-once has the following deprecation notice:

We recommend to use Travis Build Stages instead

Marking the latest version of an npm package as deprecated results in the entire package being considered deprecated, so contact the package author you think this is a mistake.

Affected package file(s): package.json

If you don't care about this, you can close this issue and not be warned about travis-deploy-once's deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:

"suppressNotifications": ["deprecationWarningIssues"]

Create popular stories/editors' picks component

screen shot 2018-11-06 at 6 33 12 pm

Editors picks + popular stories are essentially the same thing

  • we can return 3 links for each card
  • each link should have a title and a blurb
  • editors picks additionally has a photo at the top related to the first link

Navbar

Add a navbar which will stick to the top of the page and will hold links that jump to other pages (Gatsby Link) on the site or id's on the same page (and potentially external links?)
Have a style prop to allow for custom css, keep the css minimal as a base.

An idea for the links prop is an array of objects with the structure:

{
    title: string, // what shows up in the nav bar
    targeturl: string, // where the link points to
    type: string // declaring the link as external, internal, or id, could make this an enum
}

You could forgo the type key and have the navbar figure out internally what type of link it is (# at the front for ids, http at the front for external links) but I think declaring it is the better way to go.

This is just a suggestion, comment for a better solution and we can work it out.

Fix deprecation warning on build

Screen Shot 2019-05-07 at 7 54 30 PM

This warning appears on `docz dev` - the alias for which is `yarn start` - should be a simple string change that we can update somewhere

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.