Skip to content

Commit

Permalink
Merge pull request #386 from SolidOS/remove-edtProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
timbl authored Oct 27, 2024
2 parents afb8af9 + 5c9da1c commit b1bb05b
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 692 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- run: npm run build --if-present
- name: Save build
if: matrix.node-version == '16.x'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: build
path: |
Expand All @@ -47,7 +47,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: build
- uses: actions/setup-node@v1
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: build
- uses: actions/setup-node@v1
Expand Down
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module.exports = {
testEnvironmentOptions: {
customExportConditions: ['node']
},
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.ttl$': '<rootDir>/__mocks__/fileMock.js', // '\\.ttl$'
},
collectCoverage: true,
// For some reason Jest is not measuring coverage without the below option.
// Unfortunately, despite `!(.test)`, it still measures coverage of test files as well:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"homepage": "https://github.com/solidos/solid-panes",
"dependencies": {
"@solid/better-simple-slideshow": "^0.1.0",
"@types/jest": "^29.5.12",
"activitystreams-pane": "^0.6.13",
"chat-pane": "^2.4.26",
"contacts-pane": "^2.6.12",
Expand All @@ -68,7 +69,6 @@
"@babel/preset-typescript": "^7.24.1",
"@testing-library/dom": "^9.3.4",
"@testing-library/jest-dom": "^6.4.2",
"@types/jest": "^29.5.12",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
Expand Down
105 changes: 0 additions & 105 deletions src/outline/licenseOptions.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/outline/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import * as $rdf from 'rdflib'
import * as UI from 'solid-ui'
import { authn, authSession, store } from 'solid-logic'
import { propertyViews } from './propertyViews'
import { licenseOptions } from './licenseOptions'

import { outlineIcons } from './outlineIcons.js' // @@ chec
import { UserInput } from './userInput.js'
import * as queryByExample from './queryByExample.js'
Expand Down Expand Up @@ -179,13 +177,6 @@ export default function (context) {
td.setAttribute('notSelectable', 'false')
let theClass = 'obj'

// check the IPR on the data. Ok if there is any checked license which is one the document has.
if (statement && statement.why) {
if (licenseOptions && licenseOptions.checklicense && licenseOptions.checklicense()) {
theClass += ' licOkay' // flag as light green etc .licOkay {background-color: #dfd}
}
}

// set about and put 'expand' icon
if (
obj.termType === 'NamedNode' ||
Expand Down
3 changes: 2 additions & 1 deletion src/outline/propertyViews.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ describe('property views', () => {
const view = views.defaults[property]
const result = view(sym('mailto:[email protected]'))
expect(result).toBeInstanceOf(HTMLAnchorElement)
expect(result).toHaveAttribute('href', 'mailto:[email protected]')
expect(result).toHaveAttribute('href', 'mailto:[email protected]');
expect(result).toHaveTextContent('[email protected]');
})
})
164 changes: 0 additions & 164 deletions src/profile/editProfile.view.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/profile/profile.dom.ts

This file was deleted.

Loading

0 comments on commit b1bb05b

Please sign in to comment.