Skip to content

Commit

Permalink
wip @rdub deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Feb 3, 2024
1 parent 6df3fbb commit 81c9162
Show file tree
Hide file tree
Showing 13 changed files with 7,129 additions and 18,810 deletions.
2 changes: 0 additions & 2 deletions www/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ const minimize = !['false', 'n', 'no', '0'].includes(NEXT_MINIFY)

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
unoptimized: true,
},
transpilePackages: ["next-utils"],
basePath: NEXT_BASE_PATH,
webpack({ optimization, ...webpackConfig }) {
return { ...webpackConfig, optimization: { ...optimization, minimize } };
Expand Down
7 changes: 0 additions & 7 deletions www/npm-install-remote-only.sh

This file was deleted.

18,778 changes: 0 additions & 18,778 deletions www/package-lock.json

This file was deleted.

11 changes: 7 additions & 4 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"dependencies": {
"@mdx-js/loader": "^2.3.0",
"@next/mdx": "^13.2.4",
"@rdub/base": "^0.1.0",
"@rdub/next-base": "^0.1.0",
"@rdub/next-markdown": "0.0.2",
"@rdub/next-params": "^0.0.1",
"assert": "^2.0.0",
"aws-sdk": "^2.1043.0",
"bootstrap": "^4.1.3",
Expand All @@ -18,16 +22,15 @@
"leaflet": "^1.9.2",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"next": "^13.2.4",
"next-utils": "https://gitpkg.now.sh/runsascoded/next-utils/dist?bdedf9d",
"next": "^14",
"node-fetch": "^2.6.1",
"plotly.js": "^2.0.0",
"plotly.js": "^2.29.0",
"process": "^0.11.10",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-leaflet": "^4.1.0",
"react-markdown": "^7.1.1",
"react-plotly.js": "^2.5.1",
"react-plotly.js": "^2.6.0",
"react-router-dom": "^6.0.2",
"react-tooltip": "^5.0.0"
},
Expand Down
20 changes: 10 additions & 10 deletions www/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ import React, {ReactNode, useMemo, useState} from 'react';
import css from "./index.module.css"
import controlCss from "../src/controls.module.css"

import {Data, Layout} from "plotly.js"
import { Data, Layout, RootOrData } from "plotly.js"

import {Checkbox} from "../src/checkbox";
import {Checklist} from "../src/checklist";
import {DateRange, DateRange2Dates, dateRangeParam} from "../src/date-range";
import Head from "../src/head"
import {Radios} from "../src/radios";

import {getBasePath} from "next-utils/basePath"
import {loadSync} from "next-utils/load"
import MD from "next-utils/md"
import {concat, fromEntries, mapValues, o2a,} from "next-utils/objs"
import {getBasePath} from "@rdub/next-base/basePath"
import {loadSync} from "@rdub/base/load"
import MD from "@rdub/next-markdown/md"
import {concat, fromEntries, mapValues, o2a,} from "@rdub/base/objs"
import { boolParam, enumMultiParam, enumParam, numberArrayParam, Param, ParsedParam, parseQueryParams,
} from "next-utils/params";
} from "@rdub/next-params/params";
import { Colors, Gender, GenderQueryStrings, GenderRollingAvgCutoff, Genders, Int2Gender, NormalizeRideableType, Region, RegionQueryStrings, Regions, RideableType, RideableTypeChars, RideableTypes, Row, StackBy, StackBys, stackKeyDict, toYM, UnknownRideableCutoff, UserType, UserTypeQueryStrings, UserTypes, YAxes, YAxis, yAxisLabelDict,
} from "../src/data";

Expand Down Expand Up @@ -543,7 +543,7 @@ export default function App({ data, lastMonthStr }: { data: Row[], lastMonthStr:
.then(m => m.default)
.then(
Plotly => Plotly.downloadImage(
figure,
figure as RootOrData,
{
width: graphDiv.offsetWidth,
height: graphDiv.offsetHeight,
Expand Down Expand Up @@ -585,7 +585,7 @@ export default function App({ data, lastMonthStr }: { data: Row[], lastMonthStr:
width={"100%"}
height={height}
// layout={"fill"}
// fill // TODO: Next 13 requires updating <Link> in next-utils/md
// fill
// layout="responsive"
// loading="lazy"
/>
Expand Down Expand Up @@ -735,14 +735,14 @@ export default function App({ data, lastMonthStr }: { data: Row[], lastMonthStr:
</a>
<hr />
<h3 id="qc">🚧 Data-quality issues 🚧</h3>
{MD(`
{MD({ content: `
Several things changed in February 2021 (presumably as part of [the Lyft acquisition](https://www.lyft.com/blog/posts/lyft-becomes-americas-largest-bikeshare-service)):
- "Gender" information is no longer provided:
- All rides are labeled "unknown" starting February 2021
- [Here's an example showing the available data](?y=m&s=g&pct=&g=mf&d=1406-2102)
- A new "Rideable Type" field was added, containing values \`docked_bike\` and \`electric_bike\` 🎉; however, [it currently only shows ebike data from June 2021](?y=m&s=b&rt=ce)
- The "User Type" values changed ("Annual" → "member", "Daily" → "casual"); I'm using the former/old values here, they seem equivalent.
`)}
` })}
<div className={css.footer}>
Code: { icon( 'gh', 'https://github.com/neighbor-ryan/ctbk.dev#readme', 'GitHub logo') }
Data: { icon( 's3', 'https://s3.amazonaws.com/ctbk/index.html', 'Amazon S3 logo') }
Expand Down
4 changes: 2 additions & 2 deletions www/pages/stations.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Head from "../src/head"
import Map from '../src/components/Map';

import {floatParam, LL, llParam, Param, ParsedParam, parseQueryParams, stringParam} from "next-utils/params";
import {getSync, loadSync} from "next-utils/load"
import {floatParam, LL, llParam, Param, ParsedParam, parseQueryParams, stringParam} from "@rdub/next-params/params";
import {getSync, loadSync} from "@rdub/base/load"
import * as ReactLeaflet from "react-leaflet";
import type L from 'leaflet';
import {Dispatch, useMemo, useState} from 'react';
Expand Down
Loading

0 comments on commit 81c9162

Please sign in to comment.