Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove editProfile #386

Merged
merged 10 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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 @@ -169,7 +167,7 @@
obj,
view,
deleteNode,
statement

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u

Check warning on line 170 in src/outline/manager.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'statement' is defined but never used. Allowed unused args must match /^_/u
) {
const td = dom.createElement('td')
td.setAttribute(
Expand All @@ -179,13 +177,6 @@
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
Loading