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

Repro #132, html escape characters #133

Closed
Closed
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
220 changes: 220 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions plugins/repro/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
}
24 changes: 24 additions & 0 deletions plugins/repro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn

# misc
.DS_Store
*.pem

# files
my-plugin
dev-plugin
dist

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local
7 changes: 7 additions & 0 deletions plugins/repro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# RSS Feeds

Synchronize RSS feeds with Framer CMS

**By**: @niekert @huntercaron

![RSS Feeds](../../assets/rss.png)
6 changes: 6 additions & 0 deletions plugins/repro/framer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "xxd64a",
"name": "Repro",
"modes": ["syncManagedCollection", "configureManagedCollection"],
"icon": "/rss.png"
}
13 changes: 13 additions & 0 deletions plugins/repro/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RSS Feeds</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
34 changes: 34 additions & 0 deletions plugins/repro/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "repro",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build --base=${PREFIX_BASE_PATH:+/$npm_package_name}/",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"pack": "npx framer-plugin-tools@latest pack",
"preview": "vite preview",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"classnames": "^2.5.1",
"framer-plugin": "^2.0.4",
"react": "^18",
"react-dom": "^18",
"vite-plugin-mkcert": "^1"
},
"devDependencies": {
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^7",
"@typescript-eslint/parser": "^7",
"@vitejs/plugin-react-swc": "^3",
"eslint": "^8",
"eslint-plugin-react-hooks": "^4",
"eslint-plugin-react-refresh": "^0",
"typescript": "^5.3.3",
"vite": "^5",
"vite-plugin-framer": "^1.0.1"
}
}
Binary file added plugins/repro/public/rss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions plugins/repro/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Your Plugin CSS */

main {
display: flex;
flex-direction: column;
align-items: start;
padding: 0 15px 15px 15px;
height: 100%;
gap: 15px;
}

.label {
display: block;
}

.field {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}

.field select {
width: 165px;
padding: 0 24px 0 8px;
}

.illustration {
border-radius: 8px;
width: 100%;
height: 150px;
background-color: rgba(0, 153, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.illustration svg {
width: 60px;
height: 60px;
}
Loading