mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
Common reorg (#8025)
* Re-organize common folder * fix: Correct paths in tests * fix: move new content to proper folder * chore: Move audio folder to assets * Move sprites to sprites assets directory * Move css sprites to assets directory * Split out readmes for common code and sprites * Move images to assets directory * Move destinatin of shared browserified file * remove unused file * move compiled js to client-old * Fix karma tests * fix: Correct paths for sprites
This commit is contained in:
committed by
Matteo Pagliazzi
parent
d971e673af
commit
81b7eeeb71
@@ -5,7 +5,7 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import eggs from '../../common/script/content/eggs';
|
||||
import eggs from '../../website/common/script/content/eggs';
|
||||
|
||||
describe('eggs', () => {
|
||||
describe('all', () => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import {questions, stillNeedHelp} from '../../common/script/content/faq';
|
||||
import {questions, stillNeedHelp} from '../../website/common/script/content/faq';
|
||||
|
||||
describe('FAQ Locales', () => {
|
||||
describe('Questions', () => {
|
||||
|
||||
@@ -3,9 +3,9 @@ import {
|
||||
} from '../helpers/content.helper';
|
||||
import { each, camelCase } from 'lodash';
|
||||
|
||||
import { tree as allGear } from '../../common/script/content/gear';
|
||||
import backerGear from '../../common/script/content/gear/sets/special/special-backer';
|
||||
import contributorGear from '../../common/script/content/gear/sets/special/special-contributor';
|
||||
import { tree as allGear } from '../../website/common/script/content/gear';
|
||||
import backerGear from '../../website/common/script/content/gear/sets/special/special-backer';
|
||||
import contributorGear from '../../website/common/script/content/gear/sets/special/special-contributor';
|
||||
|
||||
describe('Gear', () => {
|
||||
each(allGear, (piece, gearType) => {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import hatchingPotions from '../../common/script/content/hatching-potions';
|
||||
import hatchingPotions from '../../website/common/script/content/hatching-potions';
|
||||
|
||||
describe('hatchingPotions', () => {
|
||||
describe('all', () => {
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
expectValidTranslationString
|
||||
} from '../helpers/content.helper';
|
||||
|
||||
import mysterySets from '../../common/script/content/mystery-sets';
|
||||
import mysterySets from '../../website/common/script/content/mystery-sets';
|
||||
|
||||
describe('Mystery Sets', () => {
|
||||
it('has a valid text string', () => {
|
||||
|
||||
@@ -4,11 +4,11 @@ import {
|
||||
import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
import t from '../../common/script/content/translation';
|
||||
import t from '../../website/common/script/content/translation';
|
||||
|
||||
import stable from '../../common/script/content/stable';
|
||||
import eggs from '../../common/script/content/eggs';
|
||||
import potions from '../../common/script/content/hatching-potions';
|
||||
import stable from '../../website/common/script/content/stable';
|
||||
import eggs from '../../website/common/script/content/eggs';
|
||||
import potions from '../../website/common/script/content/hatching-potions';
|
||||
|
||||
describe('stable', () => {
|
||||
describe('dropPets', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {STRING_ERROR_MSG, STRING_DOES_NOT_EXIST_MSG} from '../helpers/content.helper';
|
||||
import translator from '../../common/script/content/translation';
|
||||
import translator from '../../website/common/script/content/translation';
|
||||
|
||||
describe('Translator', () => {
|
||||
it('returns error message if string is not properly formatted', () => {
|
||||
|
||||
Reference in New Issue
Block a user