Skip to content

Commit

Permalink
Merge pull request #139 from rweyrauch/revert-137-main
Browse files Browse the repository at this point in the history
Revert "40k: 10th tweaks and fixes"
  • Loading branch information
rweyrauch committed Oct 5, 2023
2 parents a95a41a + fdd72b9 commit eae47ed
Show file tree
Hide file tree
Showing 77 changed files with 283 additions and 28,289 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
node_modules
#dist
.idea
.vscode/settings.json
/dist/app*
/dist/main*
/dist/renderer*
/dist/roster*
/dist/app*

3 changes: 1 addition & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"type": "node",
"request": "launch",
"name": "Jasmine Current File",
"runtimeExecutable": "/usr/local/bin/npx",
"program": "jasmine",
"program": "${workspaceFolder}/node_modules/jasmine-ts/lib/index",
"args": ["--config=./jasmine.json", "${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
Expand Down
11 changes: 7 additions & 4 deletions css/prettyscribe.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ label {
padding-left: var(--notchSize);
}

.wh40k_unit_sheet > table > thead.header_row {
text-transform: uppercase
}

.wh40k_unit_sheet > table > thead.info_row > tr > td:first-child {
font: bold 1em sans-serif;
text-transform: uppercase;
Expand All @@ -250,7 +254,7 @@ label {

.wh40k_unit_sheet > table > thead.unit_header {
text-align: center;
text-transform: uppercase;
text-transform: uppercase
}

.wh40k_unit_sheet > table > thead.unit_header > tr > td:nth-child(2) {
Expand All @@ -262,8 +266,7 @@ label {
color: white;
}

.wh40k_unit_sheet > table > thead > tr.header_row > th {
text-transform: uppercase;
.wh40k_unit_sheet > table > thead.header_row > tr > th {
white-space: nowrap;
}

Expand Down Expand Up @@ -367,4 +370,4 @@ label {

.page_break {
break-before: page;
}
}
27,685 changes: 2 additions & 27,683 deletions dist/prettyscribe.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions jasmine.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
],
"spec_dir": "spec",
"spec_files": [
"**Spec.ts",
"*/**Spec.ts"
"**Spec.ts"
],
"helpers": [
"helpers/jasmine-typescript-helper.js"
Expand Down
184 changes: 0 additions & 184 deletions spec/40k10th/Necrons10eSpec.ts

This file was deleted.

8 changes: 4 additions & 4 deletions spec/40k8th/AeldariTestSpec.ts → spec/AeldariTestSpec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k8th/Aeldari Test.ros", async function() {
const doc = await readZippedRosterFile('test/40k8th/Aeldari Test.ros');
it("loads test/Aeldari Test.ros", async function() {
const doc = await readZippedRosterFile('test/Aeldari Test.ros');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k8th/Black Templar - Test Output.ros", async function() {
const doc = await readZippedRosterFile('test/40k8th/Black Templar - Test Output.ros');
it("loads test/Black Templar - Test Output.ros", async function() {
const doc = await readZippedRosterFile('test/Black Templar - Test Output.ros');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k8th/Black Templar 2000.ros", async function() {
const doc = await readZippedRosterFile('test/40k8th/Black Templar 2000.ros');
it("loads test/Black Templar 2000.ros", async function() {
const doc = await readZippedRosterFile('test/Black Templar 2000.ros');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k9th/BloodAngels test.ros", async function() {
const doc = await readZippedRosterFile('test/40k9th/BloodAngels test.ros');
it("loads test/BloodAngels test.ros", async function() {
const doc = await readZippedRosterFile('test/BloodAngels test.ros');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
8 changes: 4 additions & 4 deletions spec/40k9th/CSMTestSpec.ts → spec/CSMTestSpec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k9th/CSMTest.rosz", async function() {
const doc = await readZippedRosterFile('test/40k9th/CSMTest.rosz');
it("loads test/CSMTest.rosz", async function() {
const doc = await readZippedRosterFile('test/CSMTest.rosz');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k9th/Chaos Knight Favour Test.rosz", async function() {
const doc = await readZippedRosterFile('test/40k9th/Chaos Knight Favour Test.rosz');
it("loads test/Chaos Knight Favour Test.rosz", async function() {
const doc = await readZippedRosterFile('test/Chaos Knight Favour Test.rosz');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
8 changes: 4 additions & 4 deletions spec/40k8th/ChaosSMTestSpec.ts → spec/ChaosSMTestSpec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k8th/Chaos SM Test.ros", async function() {
const doc = await readZippedRosterFile('test/40k8th/Chaos SM Test.ros');
it("loads test/Chaos SM Test.ros", async function() {
const doc = await readZippedRosterFile('test/Chaos SM Test.ros');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { readZippedRosterFile } from '../helpers/readRosterFile';
import { Create40kRoster } from "../../src/roster40k";
import { readZippedRosterFile } from './helpers/readRosterFile';
import { Create40kRoster } from "../src/roster40k";

function mapWithKeys(keys: string[]) {
return new Map(keys.map(e => [e, jasmine.any(String)]));
}

describe("Create40kRoster", function() {
it("loads test/40k9th/DarkAngelsTest.rosz", async function() {
const doc = await readZippedRosterFile('test/40k9th/DarkAngelsTest.rosz');
it("loads test/DarkAngelsTest.rosz", async function() {
const doc = await readZippedRosterFile('test/DarkAngelsTest.rosz');
const roster = Create40kRoster(doc);

expect(roster).toEqual(
Expand Down
Loading

0 comments on commit eae47ed

Please sign in to comment.