Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
51e5319
version 0.2.0
Jun 27, 2019
32b1fce
cleanup dependencies
Jun 27, 2019
be6d3a2
cleanup
Jun 27, 2019
66f667d
url params
Jun 27, 2019
96735df
and hide menu on request
Jun 27, 2019
de08d5d
skip boilerplate override pans patch
Jun 27, 2019
33c6730
history pushstate on pan configuration change + same size pans
Jun 28, 2019
caf064d
patch to all corner-cases of menu=false|true and layout=row|column
Jun 28, 2019
5d469bc
dynamic pan for any order of url pans
Jun 28, 2019
4753fea
create url function + debounceruncode on remount pan
Jun 28, 2019
d088124
fix [Object module] in editor when opening pan first time
Jun 28, 2019
37e496c
add local storage "boilerplate"
Jul 2, 2019
e2e226a
local storage
Jul 2, 2019
674531b
code cleanup a bit
Jul 3, 2019
0b92704
css
Jul 3, 2019
fe80500
css
Jul 10, 2019
713b6d6
fix https://github.com/egoist/codepan/issues/58
Jul 14, 2019
884c986
codefund-hide-on-error
Aug 4, 2019
3672aee
fix console and iframe
Aug 4, 2019
94324f3
fix hyperapp
Aug 4, 2019
0ff8a34
minor - do not set boilerplate to undefined
Aug 4, 2019
948cd2b
linted
Aug 4, 2019
7856217
dont reload active tab when changing layout
Aug 4, 2019
2bcc27e
add myself as collaborator
Aug 4, 2019
6d3fa3c
css smaller font + add mmissing spaces to args of console log
Aug 4, 2019
24893d3
minor css + copy vendor to dist
Aug 4, 2019
81d7afa
feat: slightly refresh this package
Dec 28, 2023
18d900e
fix start script
Dec 28, 2023
a3d4077
fix: remove build warning / add correct babelrc option
Dec 28, 2023
589a4bc
feat: change default port to null (4200)
Dec 28, 2023
b58b451
feat: cleanup
Dec 28, 2023
89d62e0
fix: vue@2 boilerplates
Jan 1, 2024
a5adb05
fix: svelte, prettier
Jan 1, 2024
2014e79
feat: better icons [x]
Jan 1, 2024
3590e29
fix: hyperapp, bundle.run url
Jan 1, 2024
1122f30
fix: update circleci
Jan 1, 2024
70fec46
fix: update circleci (really)
Jan 1, 2024
7089291
fix: tests
Jan 1, 2024
9e188b1
feat: add url
Jan 1, 2024
ec950cd
feat: bump version
Jan 1, 2024
247557c
fix: create pan corner case
Jan 2, 2024
e873f10
fix: es-import boilerplate
Jan 4, 2024
bff1560
fix: update links to gh Prozi
Jan 4, 2024
f1f5b32
feat: bump version for release
Jan 4, 2024
a7a99d6
feat: use COMMIT_HASH env if exists at build time
Jan 4, 2024
d6b9a81
feat: add exact expected peer version of offline-plugin
Jan 4, 2024
ad0c1dc
fix: v0.2.4- version text
Jan 4, 2024
4a3cec9
feat: bump deps
May 23, 2024
f9a1c20
feat: remove private
May 23, 2024
97be0f5
feat: change pkg name
May 23, 2024
0b0962e
feat: bump dependencies
Jun 15, 2024
a81f6e0
fix: circleci
Jun 15, 2024
80e173e
feat: bump deps
nenjack Aug 14, 2024
1885bc7
feat: update build script
nenjack Aug 27, 2024
29d7435
feat: detect-collisions boilerplate + fixes
nenjack Nov 10, 2024
0a0158b
chore: Update README.md
nenjack Nov 28, 2024
bd4ff1d
Merge egoist/codepan/master into master
nenjack Dec 19, 2024
79fd087
feat: bump version after egoist master merge
nenjack Dec 19, 2024
bdef28e
fix: show pans on set boilerplate
nenjack Dec 19, 2024
c499489
feat: host on github
nenjack Sep 6, 2025
c1e936b
feat: rwd refactor
nenjack Sep 6, 2025
d5b1a48
chore: fix css in header portrait
Sep 6, 2025
d74b4b6
chore: rm old discord from README.md
Sep 6, 2025
b95392c
chore: rebuild new version after updates
nenjack Sep 6, 2025
9a7dd2e
fix: some more css
nenjack Sep 6, 2025
a94f957
feat: more css
nenjack Sep 6, 2025
af51684
fix: offline and trim deps
nenjack Sep 8, 2025
ad70996
fix: sizing of pans
nenjack Sep 8, 2025
5ea72c4
fix: homepage url in worker
nenjack Sep 8, 2025
4af23b3
feat: use more secure pwa-worker
nenjack Sep 9, 2025
6f32bd2
feat: new version improved
nenjack Sep 30, 2025
90b987a
feat: new version
nenjack Sep 30, 2025
6ab1163
fix: ci link
nenjack Oct 1, 2025
6c962f4
chore: update github username links
nenjack Dec 18, 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
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
[
"@babel/preset-env",
{
"loose": true,
"targets": {
"node": true
}
}
]
],
"plugins": [
["@babel/plugin-transform-class-properties", { "loose": true }],
["@babel/plugin-transform-private-methods", { "loose": true }],
["@babel/plugin-transform-private-property-in-object", { "loose": true }]
]
}
5 changes: 1 addition & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
working_directory: ~/github/codepan
docker:
- image: circleci/node:8.0.0
- image: cimg/node:lts
branches:
ignore:
- gh-pages # list of branches to ignore
Expand All @@ -19,6 +19,3 @@ jobs:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- ./node_modules
- run:
name: test
command: yarn test
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
node_modules
*.log
.DS_Store

# produced by vbuild
dist

.npmrc
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docs
public
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
4 changes: 3 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
The MIT License (MIT)

Copyright (c) EGOIST <0x142857@gmail.com> (github.com/egoist)
Copyrights:
(c) 2017-2019 Egoist
(c) 2019-2025 Onizuka-Aniki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# CodePan

[![CircleCI](https://circleci.com/gh/egoist/codepan/tree/master.svg?style=shield&circle-token=e811a08d6464123dd65d2dcd52f62806bf9e37fc)](https://circleci.com/gh/egoist/codepan/tree/master) [![chat](https://img.shields.io/badge/chat-on%20discord-7289DA.svg?style=flat)](https://chat.egoist.moe)
[<img src="https://img.shields.io/circleci/build/github/nenjack/codepan/main?style=for-the-badge" alt="build status" />](https://app.circleci.com/pipelines/github/nenjack/codepan)

Play with JS/CSS/HTML so simple it hurts, the web playground that works offline.

## Demo

https://nenjack.github.io/codepan/

## Why

> Aren't there already JSBin/CodePen/JSFiddle?

Yep! So why not one more? And this one could work **offline** for you!

How? `codepan` is just a single page app with **no-backend**! Built with Webpack and Vue.js, and the offline feature is provided by [offline-plugin](https://github.com/NekR/offline-plugin).
How? `codepan` is just a single page app with **no-backend**! Built with Webpack and Vue.js, and the offline feature is provided by my [pwa-worker](https://www.npmjs.com/package/pwa-worker)

## Browser Support

Expand All @@ -24,6 +28,27 @@ Clone this repository and install dependencies by running `yarn`, then:
- `yarn build`: Build in production mode
- `yarn lint`: Run eslint

## Set pans from the url GET parameters

You can use url GET param:

- `pans=html,css,js,console,output`

Sets types of visible open pans, any number is ok

- `layout=column|row`

Sets the desired layout of open pans

- `headless=false|true`

Doesnt show ads, menu or pan header titles

## Credits

- v0.1 &copy; [Egoist](https://github.com/egoist)
- v0.2+ &copy; [Onizuka-Aniki](https://github.com/nenjack)

## License

MIT &copy; [EGOIST](https://github.com/egoist)
MIT
5 changes: 0 additions & 5 deletions docs/add-transformer.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/css/chunk-vendors.ab6c3795.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/css/editor-page.6fe7ed91.chunk.css

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

1 change: 1 addition & 0 deletions docs/assets/css/index.307067da.chunk.css

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

1 change: 1 addition & 0 deletions docs/assets/css/not-found-page.d7a70679.chunk.css

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

Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions docs/assets/js/0.fb59d1fd.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/js/13.ea00fb4c.chunk.js

Large diffs are not rendered by default.

Loading