Skip to content

Commit

Permalink
v1.2.0-dev.12 (#572)
Browse files Browse the repository at this point in the history
* wip

* fix display of remote projects

* hide worker windows

* change date element to inter type

* use auto mode for cert finding
  • Loading branch information
NickLaiacona authored Sep 4, 2024
1 parent e81966e commit 88eedd4
Show file tree
Hide file tree
Showing 12 changed files with 354 additions and 282 deletions.
2 changes: 1 addition & 1 deletion faircopy_scripts/turtle/create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const createConfig = function createConfig(teiSchema) {
}

// initialize menus, parse from config file to internal format
const menuGroupsJSON = fs.readFileSync(`scripts/turtle/menu-groups-en.json`).toString('utf-8')
const menuGroupsJSON = fs.readFileSync(`faircopy_scripts/turtle/menu-groups-en.json`).toString('utf-8')
const menus = parseMenus(menuGroupsJSON,elements)

return { menus, elements, vocabs }
Expand Down
4 changes: 2 additions & 2 deletions faircopy_scripts/turtle/create-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const fs = require('fs');
const createElements = function createElements(elGroups,specs,keepReportData,exp) {
const elements = []
const expSuffix = exp ? '-exp' : ''
const icons = JSON.parse(fs.readFileSync(`scripts/turtle/inline-icons${expSuffix}.json`).toString('utf-8'))
const defaultNodes = JSON.parse(fs.readFileSync(`scripts/turtle/default-nodes${expSuffix}.json`).toString('utf-8'))
const icons = JSON.parse(fs.readFileSync(`faircopy_scripts/turtle/inline-icons${expSuffix}.json`).toString('utf-8'))
const defaultNodes = JSON.parse(fs.readFileSync(`faircopy_scripts/turtle/default-nodes${expSuffix}.json`).toString('utf-8'))

elements.push( ...createNodes(elGroups,true,defaultNodes,specs) )
elements.push( ...createInlineNodes(elGroups,icons,specs) )
Expand Down
2 changes: 1 addition & 1 deletion faircopy_scripts/turtle/element-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const {getAllElements} = require('./parse-util')
const teiSpecsDir = '../TEI/P5/Source/Specs'

const runReport = async function runReport() {
const elementGroups = JSON.parse(fs.readFileSync(`scripts/turtle/exp-element-groups.json`).toString('utf-8'))
const elementGroups = JSON.parse(fs.readFileSync(`faircopy_scripts/turtle/exp-element-groups.json`).toString('utf-8'))
const allElements = getAllElements(elementGroups)
const specs = load( teiSpecsDir, allElements )

Expand Down
2 changes: 1 addition & 1 deletion faircopy_scripts/turtle/exp-element-groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
"corr",
"country",
"damage",
"date",
"del",
"district",
"emph",
Expand Down Expand Up @@ -285,7 +286,6 @@
"abbr",
"catchwords",
"cl",
"date",
"distinct",
"email",
"expan",
Expand Down
6 changes: 3 additions & 3 deletions faircopy_scripts/turtle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const teiSpecsDir = '../TEI/P5/Source/Specs'
async function run() {
const exp = true
const expPrefix = exp ? 'exp-' : ''
const elementGroups = JSON.parse(fs.readFileSync(`scripts/turtle/${expPrefix}element-groups.json`).toString('utf-8'))
const elementGroups = JSON.parse(fs.readFileSync(`faircopy_scripts/turtle/${expPrefix}element-groups.json`).toString('utf-8'))
const allElements = getAllElements(elementGroups)
const specs = load( teiSpecsDir, allElements )

Expand All @@ -24,11 +24,11 @@ async function run() {
const modules = createModules(allElements,specs)

const teiSimpleConfig = { elements, attrs, elementGroups, modules }
fs.writeFileSync("public/main-process/config/tei-simple.json",JSON.stringify(teiSimpleConfig, null, '\t'))
fs.writeFileSync("src/tei-simple.json",JSON.stringify(teiSimpleConfig, null, '\t'))

// new project config is based on schema
const fairCopyConfig = createConfig(teiSimpleConfig)
fs.writeFileSync("public/main-process/config/faircopy-config.json",JSON.stringify(fairCopyConfig, null, '\t'))
fs.writeFileSync("src/faircopy-config.json",JSON.stringify(fairCopyConfig, null, '\t'))
}

// A wise turtle that understands ODD and ProseMirror
Expand Down
3 changes: 1 addition & 2 deletions forge.config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ module.exports = {
loadingGif: './src/render/img/install_spinner.gif',
iconURL: 'https://raw.githubusercontent.com/performant-software/faircopy/main/render/icons/icon.ico',
setupIcon: './src/render/icons/icon.ico',
certificateFile: 'LOCATION OF APP SIGNING CERTIFICATE',
certificatePassword: 'CERTIFICATE PASSWORD',
signWithParams: '/a',
platform: 'win32'
}
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "faircopy",
"productName": "FairCopy",
"version": "1.2.0-dev.11",
"version": "1.2.0-dev.12",
"description": "A word processor for the humanities scholar.",
"main": "./.webpack/main",
"private": true,
Expand Down
Loading

0 comments on commit 88eedd4

Please sign in to comment.