Skip to content

Commit

Permalink
Move consts
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeog committed Oct 5, 2023
1 parent f868161 commit f317508
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ dist
node_modules
.DS_Store
.parcel-cache
.env
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/downloadTargetsImages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs'
import axios from 'axios'

import { createFolder } from 'scripts/utils/createFolder'
import { SHARED_FOLDER_PATH } from 'shared/consts/sharedFolderPath'
import { SHARED_FOLDER_PATH } from 'scripts/consts/sharedFolderPath'
import * as targets from 'shared/targetsInfo.json'

const targetsImagesFolderPath = `${SHARED_FOLDER_PATH}/targetsImages`
Expand Down
2 changes: 1 addition & 1 deletion scripts/generateEmptyTargets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as fs from 'fs'

import { createFolder } from './utils/createFolder'
import * as targets from 'shared/targetsInfo.json'
import { SHARED_FOLDER_PATH } from 'shared/consts/sharedFolderPath'
import { SHARED_FOLDER_PATH } from 'scripts/consts/sharedFolderPath'

export type TargetInfo = {
id: number
Expand Down
2 changes: 1 addition & 1 deletion scripts/generateTargetsExport.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as fs from 'fs'
import { SHARED_FOLDER_PATH } from 'shared/consts/sharedFolderPath'
import { SHARED_FOLDER_PATH } from 'scripts/consts/sharedFolderPath'

const targetsFolderPath = `${SHARED_FOLDER_PATH}/targets`
const targetsExportFilePath = `${targetsFolderPath}/index.ts`
Expand Down
2 changes: 1 addition & 1 deletion scripts/scrapeTargetsInformation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as fs from 'fs'

import { SHARED_FOLDER_PATH } from 'shared/consts/sharedFolderPath'
import { SHARED_FOLDER_PATH } from 'scripts/consts/sharedFolderPath'

type Target = {
id: number
Expand Down
7 changes: 0 additions & 7 deletions shared/consts/solvedTargets.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TARGETS_MAP } from 'shared/consts/targetsMap'
import { TARGETS_MAP } from 'src/consts/targetsMap'
import { GitHubButton } from './components/GitHubButton'
import { List } from './components/List'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HTMLAttributes } from 'react'

import { Target } from 'shared/types'
import { TARGET_DIMENSIONS } from 'shared/consts/targetDimensions'
import { TARGET_DIMENSIONS } from 'src/consts/targetDimensions'
import { IFrame } from '../IFrame'
import * as styles from './index.module.css'

Expand Down
2 changes: 1 addition & 1 deletion src/components/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { HTMLAttributes, useEffect, useRef, useState } from 'react'
import classNames from 'classnames'

import { Target } from 'shared/types'
import { TARGET_DIMENSIONS } from 'shared/consts/targetDimensions'
import { TARGET_DIMENSIONS } from 'src/consts/targetDimensions'
import { Card } from '../Card'
import { EmptyCard } from '../EmptyCard'
import * as styles from './index.module.css'
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f317508

Please sign in to comment.