improve style & add icon toolboxes
All checks were successful
Deploy Sokko G / deploy (push) Successful in 5s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 5s
This commit is contained in:
parent
9e275e0167
commit
0493db233a
31 changed files with 317 additions and 57 deletions
|
|
@ -15,6 +15,7 @@ test("react application defines the expected local toolbox primitives", async ()
|
|||
const styles = await readFile("website/src/styles/main.scss", "utf8");
|
||||
const styleTokens = await readFile("website/src/styles/_tokens.scss", "utf8");
|
||||
const styleBase = await readFile("website/src/styles/_base.scss", "utf8");
|
||||
const styleHome = await readFile("website/src/styles/_home.scss", "utf8");
|
||||
const styleToolboxes = await readFile("website/src/styles/_toolboxes.scss", "utf8");
|
||||
const styleIcons = await readFile("website/src/styles/_icons.scss", "utf8");
|
||||
const styleMhwilds = await readFile("website/src/styles/_mhwilds.scss", "utf8");
|
||||
|
|
@ -44,7 +45,12 @@ test("react application defines the expected local toolbox primitives", async ()
|
|||
assert.match(styleTokens, /--gradient-brand/);
|
||||
assert.match(styleBase, /\.card-icon-button,\n\.drawer-action-button/);
|
||||
assert.match(styleBase, /\.import-icon-button/);
|
||||
assert.match(styleHome, /\.dialogue-line i/);
|
||||
assert.match(styleHome, /font-style: italic/);
|
||||
assert.match(styleToolboxes, /\.module-icon-abacus/);
|
||||
assert.match(styleToolboxes, /\.toolbox-icon-picker/);
|
||||
assert.match(styleToolboxes, /\.toolbox-game-icon/);
|
||||
assert.match(styleToolboxes, /\.toolbox-actions-row/);
|
||||
assert.match(styleIcons, /ui-icon-drag/);
|
||||
assert.match(styleIcons, /ui-icon-dropdown/);
|
||||
assert.match(styleIcons, /ui-icon-flip/);
|
||||
|
|
@ -56,6 +62,7 @@ test("react application defines the expected local toolbox primitives", async ()
|
|||
assert.match(source, /features\/games\/GameRoute\.jsx/);
|
||||
assert.match(iconComponent, /export function Icon/);
|
||||
assert.match(gamesPage, /export function GamesPage/);
|
||||
assert.match(gamesPage, /siteContent\.gamesPage/);
|
||||
assert.match(gameRoute, /export function GameRoute/);
|
||||
assert.match(gameRoute, /MhwildsPage/);
|
||||
assert.match(mhwildsPage, /export function MhwildsPage/);
|
||||
|
|
@ -91,6 +98,11 @@ test("react application defines the expected local toolbox primitives", async ()
|
|||
assert.match(source, /DEFAULT_SITE_CONTENT/);
|
||||
assert.match(source, /\/data\/site\.json/);
|
||||
assert.match(source, /APP_STORAGE_LIMIT_BYTES/);
|
||||
assert.match(source, /DEFAULT_TOOLBOX_ICON/);
|
||||
assert.match(source, /TOOLBOX_ICON_FILES/);
|
||||
assert.match(source, /function normalizeToolboxIcon/);
|
||||
assert.match(source, /function ToolboxIconPicker/);
|
||||
assert.match(source, /function ToolboxGameIcon/);
|
||||
assert.match(source, /function StorageQuota/);
|
||||
assert.match(source, /function writeStorageValue/);
|
||||
assert.match(source, /role="progressbar"/);
|
||||
|
|
@ -102,8 +114,11 @@ test("react application defines the expected local toolbox primitives", async ()
|
|||
assert.match(source, /function CreateToolboxModal/);
|
||||
assert.match(source, /const getToolboxGameId/);
|
||||
assert.match(source, /dragon\.png/);
|
||||
assert.match(source, /value\.split\("\\n"\)/);
|
||||
assert.match(source, /<br key=/);
|
||||
assert.match(source, /getToolboxGame\(toolbox\)/);
|
||||
assert.match(source, /toolbox-card-cover-link/);
|
||||
assert.match(source, /toolbox-icon-cover/);
|
||||
assert.match(source, /moduleColumns/);
|
||||
assert.match(source, /function ToolboxView/);
|
||||
assert.match(moduleRegistry, /onDragStart/);
|
||||
|
|
@ -139,6 +154,8 @@ test("mhwilds data and assets are available", async () => {
|
|||
|
||||
assert.equal(site.brand.name, "Sokko G");
|
||||
assert.equal(site.home.hero.title, "Sokko G");
|
||||
assert.equal(site.gamesPage.title, "Jeux disponibles");
|
||||
assert.match(site.toolboxes.summary, /espaces modulaires/);
|
||||
assert.ok(site.toolboxes.storageHelp.items.length >= 3);
|
||||
assert.equal(games.games[0].id, "mhwilds");
|
||||
assert.equal(games.games[0].eyebrow, "Guide de jeu");
|
||||
|
|
@ -183,5 +200,7 @@ test("legacy svg icons are available for reuse", async () => {
|
|||
await readFile("website/public/static/icons/zoom.svg", "utf8");
|
||||
await readFile("website/public/favicon.ico");
|
||||
await readFile("website/public/static/img/dragon.png");
|
||||
await readFile("website/public/static/img/toolbox-icons/controller.svg", "utf8");
|
||||
await readFile("website/public/static/img/toolbox-icons/toolbox.png");
|
||||
await readFile("website/public/static/img/toolbox-icons/sword.png");
|
||||
await readFile("website/public/static/img/toolbox-icons/puzzle.png");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue