Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0a191b0
updated configs, consolodated test in own folder, cleaned scripts
timea-solid Sep 29, 2025
3d5062e
drop node 18
timea-solid Sep 29, 2025
6572e18
cleaned a diff file
timea-solid Sep 29, 2025
4e856d6
added polyfill back
timea-solid Sep 29, 2025
5ceca1c
added polyfill back
timea-solid Sep 29, 2025
b0ae6b8
Merge branch 'newFace' into newStyle
timea-solid Sep 29, 2025
13af2c7
integrated ttl in tsc, removed Makefile
timea-solid Oct 1, 2025
1ff7668
added css loaders, added html5 and ARIA, separate css files
timea-solid Oct 1, 2025
2fbe654
aligned buttons
timea-solid Oct 2, 2025
83aed14
add dev to lint
timea-solid Oct 2, 2025
bd8d82a
add dev to lint
timea-solid Oct 2, 2025
7e06068
seprate linting for dev folder
timea-solid Oct 2, 2025
5dab4e7
will use separate config for dev for linting
timea-solid Oct 2, 2025
79b4b77
fixed jest tests
timea-solid Oct 3, 2025
311b4cc
stuff with name
timea-solid Oct 3, 2025
186008f
improved some alignments
timea-solid Oct 3, 2025
3436b8d
rearanged QRcode and updated test
timea-solid Oct 3, 2025
38e446a
improving the button
timea-solid Oct 3, 2025
4e17ccd
moved qr code into profile card
timea-solid Oct 3, 2025
212cfa8
improve CV
timea-solid Oct 3, 2025
ce9cdc6
consolidated styles
timea-solid Oct 6, 2025
d33b9fc
fix tests
timea-solid Oct 6, 2025
7c17da9
social account color changed
timea-solid Oct 6, 2025
f3484a0
improved usage of imports
timea-solid Oct 8, 2025
80c5f86
improved usage of imports
timea-solid Oct 8, 2025
c6a0a54
reverted to commonsJS
timea-solid Oct 8, 2025
9e5fe25
removed old configs
timea-solid Oct 8, 2025
6a2aa8f
commonsjs configs
timea-solid Oct 8, 2025
5b4e9dd
reverted to esm configs style
timea-solid Oct 8, 2025
7393042
merge
timea-solid Oct 8, 2025
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
11 changes: 0 additions & 11 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x , 20.x , 22.x ]
node-version: [ 20.x , 22.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v5
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lib
node_modules
coverage
.DS_Store
.history
.vscode
8 changes: 0 additions & 8 deletions Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

6 changes: 6 additions & 0 deletions babel.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript'
]
}
2 changes: 2 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
declare module '*.module.css';

declare module '*.ttl' {
const content: string;
export default content;
Expand Down
10 changes: 5 additions & 5 deletions dev/context.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { longChatPane } from "chat-pane";
import { DataBrowserContext, PaneRegistry } from "pane-registry";
import { LiveStore, solidLogicSingleton, store } from "solid-logic";
import { longChatPane } from 'chat-pane'
import { DataBrowserContext, PaneRegistry } from 'pane-registry'
import { LiveStore, solidLogicSingleton, store } from 'solid-logic'

export const context: DataBrowserContext = {
session: {
store: store as LiveStore,
paneRegistry: {
byName: (name: string) => {

Check warning on line 9 in dev/context.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

'name' is defined but never used

Check warning on line 9 in dev/context.ts

View workflow job for this annotation

GitHub Actions / build (22.x)

'name' is defined but never used

Check warning on line 9 in dev/context.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

'name' is defined but never used

Check warning on line 9 in dev/context.ts

View workflow job for this annotation

GitHub Actions / build (22.x)

'name' is defined but never used
return longChatPane
}
} as PaneRegistry,
Expand All @@ -14,6 +14,6 @@
},
dom: document,
getOutliner: () => null,
};
}

export const fetcher = store.fetcher;
export const fetcher = store.fetcher
36 changes: 19 additions & 17 deletions dev/index.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
import { sym } from "rdflib";
import { default as pane } from "../src";
import { context, fetcher } from "./context";
import { authn, authSession } from "solid-logic";
import * as UI from "solid-ui";
import '../src/styles/global.css'
import '../src/styles/utilities.css'
import { sym } from 'rdflib'
import { default as pane } from '../src'
import { context, fetcher } from './context'
import { authn, authSession } from 'solid-logic'
import * as UI from 'solid-ui'

const loginBanner = document.getElementById("loginBanner");
const webId = document.getElementById("webId");
const loginBanner = document.getElementById('loginBanner')
const webId = document.getElementById('webId')

loginBanner.appendChild(UI.login.loginStatusBox(document, null, {}));
loginBanner.appendChild(UI.login.loginStatusBox(document, null, {}))

async function finishLogin() {
await authSession.handleIncomingRedirect();
const session = authSession;
await authSession.handleIncomingRedirect()
const session = authSession
if (session.info.isLoggedIn) {
// Update the page with the status.
webId.innerHTML = "Logged in as: " + authn.currentUser().uri;
webId.innerHTML = 'Logged in as: ' + authn.currentUser().uri
} else {
webId.innerHTML = "";
webId.innerHTML = ''
}
}

finishLogin();
finishLogin()

const webIdToShow = "https://testingsolidos.solidcommunity.net/profile/card#me";
const webIdToShow = 'https://testingsolidos.solidcommunity.net/profile/card#me'

fetcher.load(webIdToShow).then(() => {
const app = pane.render(sym(webIdToShow), context);
document.getElementById("app").replaceWith(app);
});
const app = pane.render(sym(webIdToShow), context)
document.getElementById('app').replaceWith(app)
})
35 changes: 0 additions & 35 deletions eslint.config.js

This file was deleted.

73 changes: 73 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import tsParser from "@typescript-eslint/parser"
import tseslintPlugin from "@typescript-eslint/eslint-plugin"

export default [
{
ignores: [
'lib/**',
'node_modules/**',
'coverage/**'
],
},
{
files: ['src/**/*.js', 'src/**/*.ts', 'src/**/*.cjs', 'src/**/*.mjs'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json'],
sourceType: 'module',
},
},
plugins: {
"@typescript-eslint": tseslintPlugin,
},
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-unused-vars': 'off', // handled by TS
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': 'warn',
},
settings: {
react: {
version: "detect",
},
},
},
{
files: ['dev/**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.eslint.json'],
sourceType: 'module',
},
},
plugins: {
"@typescript-eslint": tseslintPlugin,
},
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-unused-vars': 'off', // handled by TS
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': 'warn',
},
},
{
files: ['test/**/*.js', 'test/**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.test.json'],
},
},
rules: {
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-console': 'off', // Allow console in tests
'no-undef': 'off', // Tests may define globals
}
}
]

12 changes: 0 additions & 12 deletions jest.config.js

This file was deleted.

21 changes: 21 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default {
// verbose: true, // Uncomment for detailed test output
collectCoverage: true,
coverageDirectory: 'coverage',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
customExportConditions: ['node'],
},
setupFilesAfterEnv: ["./test/helpers/jest.setup.ts"],
transformIgnorePatterns: ["/node_modules/(?!lit-html).+\\.js"],
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
moduleNameMapper: {
'^[./a-zA-Z0-9$_-]+\\.ttl$': '<rootDir>/__mocks__/fileMock.js', // '\\.ttl$'
// Mock CSS modules
'\\.module\\.css$': 'identity-obj-proxy',
// Mock other style files (optional)
'\\.(css|less|sass|scss)$': 'identity-obj-proxy'
},
roots: ['<rootDir>/src', '<rootDir>/test', '<rootDir>/__mocks__'],
}

14 changes: 0 additions & 14 deletions jest.setup.ts

This file was deleted.

Loading