Skip to content

Commit

Permalink
- feature: Added working version of shinkai-visor
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Sep 8, 2023
1 parent af04310 commit d2e58e3
Show file tree
Hide file tree
Showing 187 changed files with 648 additions and 9,562 deletions.
4 changes: 3 additions & 1 deletion apps/shinkai-visor-e2e/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ import { defineConfig } from 'cypress';
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset';

export default defineConfig({
e2e: nxE2EPreset(__dirname),
e2e: nxE2EPreset(__dirname, {
bundler: 'vite',
}),
});
8 changes: 2 additions & 6 deletions apps/shinkai-visor-e2e/src/e2e/app.cy.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { getGreeting } from '../support/app.po';
import { getWelcomeMessage } from '../support/app.po';

describe('shinkai-visor', () => {
beforeEach(() => cy.visit('/'));

it('should display welcome message', () => {
// Custom command example, see `../support/commands.ts` file
cy.login('[email protected]', 'myPassword');

// Function helper example, see `../support/app.po.ts` file
getGreeting().contains('Welcome shinkai-visor');
getWelcomeMessage().should('exist').contains('Setup Shinkai Visor to transform your web browser into a first class Shinkai client');
});
});
2 changes: 1 addition & 1 deletion apps/shinkai-visor-e2e/src/support/app.po.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const getGreeting = () => cy.get('h1');
export const getWelcomeMessage = () => cy.get('[data-cy=welcome-message]');
18 changes: 0 additions & 18 deletions apps/shinkai-visor/.babelrc

This file was deleted.

11 changes: 0 additions & 11 deletions apps/shinkai-visor/jest.config.ts

This file was deleted.

7 changes: 4 additions & 3 deletions apps/shinkai-visor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "shinkai-visor",
"version": "0.1.0",
"description": "",
"license": "ISC"
"private": true,
"version": "0.0.1",
"type": "module",
"description": "Shinkai Visor"
}
12 changes: 12 additions & 0 deletions apps/shinkai-visor/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { join, dirname } from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);

export default {
plugins: {
tailwindcss: {
config: join(dirname(__filename), 'tailwind.config.js'),
},
autoprefixer: {},
},
}
81 changes: 32 additions & 49 deletions apps/shinkai-visor/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,62 @@
"projectType": "application",
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"compiler": "babel",
"outputPath": "dist/apps/shinkai-visor",
"baseHref": "/",
"main": "apps/shinkai-visor/src/popup.tsx",
"additionalEntryPoints": [
{ "entryName": "popup", "entryPath": "apps/shinkai-visor/src/popup.tsx" },
{ "entryName": "launcher", "entryPath": "apps/shinkai-visor/src/launcher.tsx" },
{ "entryName": "content", "entryPath": "apps/shinkai-visor/src/content.ts" },
{ "entryName": "background", "entryPath": "apps/shinkai-visor/src/background.ts" }
],
"index": "apps/shinkai-visor/src/index.html",
"tsConfig": "apps/shinkai-visor/tsconfig.app.json",
"assets": [
{ "glob": "*", "input": "apps/shinkai-visor/public", "output": "."}
],
"styles": [],
"scripts": [],
"webpackConfig": "apps/shinkai-visor/webpack.config.js"
"outputPath": "dist/apps/shinkai-visor"
},
"configurations": {
"development": {
"extractLicenses": false,
"optimization": false,
"sourceMap": true,
"vendorChunk": false
"mode": "development",
"watch": true
},
"production": {
"fileReplacements": [],
"optimization": false,
"outputHashing": "none",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false
"mode": "production"
}
}
},
"serve": {
"executor": "@nx/webpack:dev-server",
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "shinkai-visor:build",
"hmr": true
"buildTarget": "shinkai-visor:build"
},
"configurations": {
"development": {
"buildTarget": "shinkai-visor:build:development"
"buildTarget": "shinkai-visor:build:development",
"hmr": true
},
"production": {
"buildTarget": "shinkai-visor:build:production",
"hmr": false
}
}
},
"preview": {
"executor": "@nx/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "shinkai-visor:build"
},
"configurations": {
"development": {
"buildTarget": "shinkai-visor:build:development"
},
"production": {
"buildTarget": "shinkai-visor:build:production"
}
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"passWithNoTests": true,
"reportsDirectory": "../../coverage/apps/shinkai-visor"
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
Expand All @@ -75,22 +73,7 @@
"options": {
"buildTarget": "shinkai-visor:build"
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/shinkai-visor/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"tags": []
}

Binary file removed apps/shinkai-visor/public/dcsparklogo.png
Binary file not shown.
Binary file modified apps/shinkai-visor/public/icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/shinkai-visor/public/icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/shinkai-visor/public/icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions apps/shinkai-visor/public/launcher.html

This file was deleted.

8 changes: 4 additions & 4 deletions apps/shinkai-visor/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
"16": "icon16.png",
"48": "icon48.png"
},
"default_popup": "popup.html"
"default_popup": "src/popup/popup.html"
},
"background": {
"scripts": ["background.js"],
"scripts": ["assets/background.js"],
"persistent": true
},
"content_scripts": [
{
"matches": ["*://*/*"],
"js": ["content.js"]
"js": ["assets/content.js"]
}
],
"web_accessible_resources": ["popup.html", "launcher.html"],
"web_accessible_resources": ["src/popup.html"],
"commands": {
"_execute_browser_action": {
"suggested_key": {
Expand Down
12 changes: 0 additions & 12 deletions apps/shinkai-visor/public/popup.html

This file was deleted.

54 changes: 0 additions & 54 deletions apps/shinkai-visor/scripts/compress.js

This file was deleted.

Loading

0 comments on commit d2e58e3

Please sign in to comment.