Skip to content
Open
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
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
strategy:
matrix:
node-version:
- 18.x
- 20.x
- 22.x

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dist

# Babel
lib
dist

# Runtime data
pids
Expand Down
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export default {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }]
],
plugins: [
[
'babel-plugin-inline-import', {
extensions: [
'.ttl'
]
}
]
]
}
4 changes: 4 additions & 0 deletions declarations.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module '*.ttl' {
const content: string;
export default content;
}
5 changes: 5 additions & 0 deletions dev/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
font-size: 120%;
}
</style>

<!-- Load external dependencies as globals -->
<script src="/node_modules/rdflib/dist/rdflib.min.js"></script>
<script src="/node_modules/solid-logic/dist/solid-logic.min.js"></script>
<script src="/node_modules/solid-ui/dist/solid-ui.min.js"></script>
</head>
<body>
<h1>The Meetulator</h1>
Expand Down
11 changes: 6 additions & 5 deletions dev/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const logic = require('solid-logic')
const MeetingPane = require('../src/meetingPane.js')
const $rdf = require('rdflib')
const UI = require('solid-ui')
import * as logic from 'solid-logic'
import MeetingPane from '../src/meetingPane'
import * as $rdf from 'rdflib'
import * as UI from 'solid-ui'

async function appendMeetingPane (dom, uri) {
const subject = $rdf.sym(uri)
Expand All @@ -23,7 +23,8 @@ async function appendMeetingPane (dom, uri) {
dom.body.appendChild(paneDiv)
}

const webIdToShow = 'https://timbl.com/timbl/Public/Test/Meeting/Brainstorming/index.ttl#this'
// const webIdToShow = 'https://timbl.com/timbl/Public/Test/Meeting/Brainstorming/index.ttl#this'
const webIdToShow = 'https://timea.solidcommunity.net/TestMeeting/index.ttl#this'

logic.store.fetcher.load(webIdToShow).then(() => {
appendMeetingPane(document, webIdToShow)
Expand Down
46 changes: 31 additions & 15 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
import { defineConfig } from "eslint/config";
import globals from "globals";
import globals from 'globals'
import neostandard from 'neostandard'

export default [
...neostandard(),
{
ignores: [
'**/*.html',
'**/*.md',
'**/*.json',
'node_modules/**',
'coverage/**',
'dist/**',
'shapes/**'
],
},
{
files: ['src/**/*.js', 'src/**/*.cjs', 'src/**/*.mjs'],

export default defineConfig([{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
globals: {
...globals.browser,
...globals.node,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
}
},

rules: {
"no-unused-vars": ["warn", {
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
}],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'no-console': 'warn',
'no-unused-vars': 'error',
'no-undef': 'error'
},
}]);
}
]
Loading