Skip to content

Commit c17af8b

Browse files
authored
chore/remove moment (#21)
* Remove momentjs
1 parent 1c95e24 commit c17af8b

File tree

5 files changed

+4
-28
lines changed

5 files changed

+4
-28
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-playground",
33
"description": "JavaScript Playground hooked up with Redux",
4-
"version": "3.0.3",
4+
"version": "3.0.4",
55
"private": true,
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
@@ -39,7 +39,6 @@
3939
"github-fork-ribbon-css": "^0.2.3",
4040
"lodash": "^4.17.19",
4141
"luxon": "^1.27.0",
42-
"moment-timezone": "^0.5.31",
4342
"monaco-editor": "^0.23.0",
4443
"monaco-editor-webpack-plugin": "^3.0.1",
4544
"react": "^17.0.2",

src/components/About/util.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ export default [
77
url: 'https://redux.js.org/',
88
use: 'Redux',
99
},
10-
{
11-
name: 'moment.js',
12-
url: 'https://momentjs.com/',
13-
use: 'moment',
14-
},
1510
{
1611
name: 'lodash',
1712
url: 'http://lodash.com',

src/components/Header/code-sample.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,16 @@
66
},
77
{
88
"id": 2,
9-
"name": "Moment",
10-
"code": "// Moment example. Reference moment in the code as `moment`\n\n// Moment\nconst now = moment().format('MMMM Do YYYY, h:mm:ss a');\n\n// Moment Time Zone\nconst nowInSudan = moment().tz('Africa/Khartoum').format('MMMM Do YYYY, h:mm:ss a');\n\n// Print it to the console\nconsole.log(now);\n\n// Print it to the output\nnowInSudan;"
11-
},
12-
{
13-
"id": 3,
149
"name": "Axios",
1510
"code": "// axios example. Reference axios in the code as `axios`\n\nconst loadTVShowCast = async () => {\n\tconst tvShowId = 431; // FRIENDS TV Show\n\tconst url = `https://api.tvmaze.com/shows/${tvShowId}/cast`;\n\tconst { data } = await axios.get(url);\n\tconsole.log(data);\n}\n\nloadTVShowCast();"
1611
},
1712
{
18-
"id": 4,
13+
"id": 3,
1914
"name": "lodash",
2015
"code": "// Lodash example. Reference lodash in the code as `_`\n\nconst sample = _.chunk(['a', 'b', 'c', 'd'], 2);\nsample"
2116
},
2217
{
23-
"id": 5,
18+
"id": 4,
2419
"name": "luxon",
2520
"code": "// Luxon code example. Reference Luxon in the code as `luxon` \n\nconst luxonDate = luxon.DateTime.now().setZone('America/New_York').minus({weeks:1}).endOf('day').toISO();\nluxonDate"
2621
}

src/helpers/global.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import _ from 'lodash';
22
import { createStore, combineReducers } from 'redux';
33
import axios from 'axios';
4-
import moment from 'moment-timezone';
54
import * as luxon from 'luxon';
65
import faker from 'faker';
76

8-
_.extend(window, { _, axios, moment, luxon, faker, Redux: { createStore, combineReducers } });
7+
_.extend(window, { _, axios, luxon, faker, Redux: { createStore, combineReducers } });

yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4253,18 +4253,6 @@ mkdirp@^0.5.1, mkdirp@^0.5.5:
42534253
dependencies:
42544254
minimist "^1.2.5"
42554255

4256-
moment-timezone@^0.5.31:
4257-
version "0.5.33"
4258-
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.33.tgz#b252fd6bb57f341c9b59a5ab61a8e51a73bbd22c"
4259-
integrity sha512-PTc2vcT8K9J5/9rDEPe5czSIKgLoGsH8UNpA4qZTVw0Vd/Uz19geE9abbIOQKaAQFcnQ3v5YEXrbSc5BpshH+w==
4260-
dependencies:
4261-
moment ">= 2.9.0"
4262-
4263-
"moment@>= 2.9.0":
4264-
version "2.29.1"
4265-
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3"
4266-
integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
4267-
42684256
monaco-editor-webpack-plugin@^3.0.1:
42694257
version "3.0.1"
42704258
resolved "https://registry.yarnpkg.com/monaco-editor-webpack-plugin/-/monaco-editor-webpack-plugin-3.0.1.tgz#b9bf93314eb2708907c232cfbf359622e7a6d98a"

0 commit comments

Comments
 (0)