-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: new mobile create post UI (#1922)
* fix * fix * fix * fix * add global css * format fix * fix * fix * add react icons dependencies * fix * fix * Update Bottombar.tsx * Update MobilePostCreate.tsx * fix * fix * fix * Update formatter.ts * new mobile ui * fix * Update ckeditor.ts * update prettierignore * video upload * video upload * Update MobileEmbed.tsx * fix * Update MobilePostCreate.tsx * add crude timeline selection * lint fix * Update MobilePostCreate.tsx --------- Co-authored-by: Irman Nur Muhammad Alamsyah <irmannmal@gmail.com>
- Loading branch information
Showing
97 changed files
with
44,133 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# OSX Operating System Files | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
/build | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
/.pnp | ||
.pnp.js | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# Transpiled JavaScript files from Typescript | ||
/dist | ||
/out/ | ||
|
||
# Cache used by TypeScript's incremental build | ||
*.tsbuildinfo | ||
|
||
# vercel | ||
.vercel | ||
|
||
# Experiment | ||
prisma | ||
|
||
# misc | ||
*.pem | ||
|
||
# husky | ||
.husky/_ | ||
|
||
# next.js | ||
.next | ||
/public/sw-env.js | ||
/public/sw.js | ||
/public/workbox-*.js | ||
/public/worker-*.js | ||
/public/sw.js.map | ||
/public/workbox-*.js.map | ||
/public/worker-*.js.map | ||
|
||
# storybook | ||
/storybook-static | ||
|
||
# Sentry | ||
.sentryclirc | ||
|
||
# IDE | ||
.idea | ||
.vscode | ||
|
||
# Docs | ||
/docs/* | ||
# exception to the rule | ||
!docs/.gitkeep | ||
|
||
**/ckeditor.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@media (max-height: 400px) { | ||
.ck-editor__editable { | ||
min-height: 150px; | ||
} | ||
} | ||
|
||
@media (max-height: 900px) and (min-height: 410px) { | ||
.ck-editor__editable { | ||
min-height: 550px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Software License Agreement | ||
|
||
Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
|
||
Online builder code samples are licensed under the terms of the MIT License (see Appendix A): | ||
|
||
http://en.wikipedia.org/wiki/MIT_License | ||
|
||
CKEditor 5 collaboration features are only available under a commercial license. [Contact us](https://ckeditor.com/contact/) for more details. | ||
|
||
Free 30-days trials of CKEditor 5 collaboration features are available: | ||
|
||
- https://ckeditor.com/collaboration/ - Real-time collaboration (with all features). | ||
- https://ckeditor.com/collaboration/comments/ - Inline comments feature (without real-time collaborative editing). | ||
- https://ckeditor.com/collaboration/track-changes/ - Track changes feature (without real-time collaborative editing). | ||
|
||
## Trademarks | ||
|
||
CKEditor is a trademark of CKSource Holding sp. z o.o. All other brand | ||
and product names are trademarks, registered trademarks or service | ||
marks of their respective holders. | ||
|
||
--- | ||
|
||
## Appendix A: The MIT License | ||
|
||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014-2023, CKSource Holding sp. z o.o. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# CKEditor 5 editor generated with the online builder | ||
|
||
This repository presents a CKEditor 5 editor build generated by the [Online builder tool](https://ckeditor.com/ckeditor-5/online-builder) | ||
|
||
## Quick start | ||
|
||
1. Open the `sample/index.html` page in the browser. | ||
|
||
2. Fill the prompt with the license key. If you do not have the license key yet [contact us](https://ckeditor.com/contact/). | ||
|
||
## Configuring build | ||
|
||
Changes like changing toolbar items, changing order of icons or customizing plugin configurations should be relatively easy to make. Open the `sample/index.html` file and edit the script that initialized the CKEditor 5. Save the file and refresh the browser. That's all. | ||
|
||
_Note:_ If you have any problems with browser caching use the `Ctrl + R` or `Cmd + R` shortcut depending on your system. | ||
|
||
However if you want to remove or add a plugin to the build you need to follow the next step of this guide. | ||
|
||
Note that it is also possible to go back to the [Online builder tool](https://ckeditor.com/ckeditor-5/online-builder) and pick other set of plugins. But we encourage you to try the harder way and to learn the principles of Node.js and CKEditor 5 ecosystems that will allow you to do more cool things in the future! | ||
|
||
### Installation | ||
|
||
In order to rebuild the application you need to install all dependencies first. To do it, open the terminal in the project directory and type: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Make sure that you have the `node` and `npm` installed first. If not, then follow the instructions on the [Node.js documentation page](https://nodejs.org/en/). | ||
|
||
### Adding or removing plugins | ||
|
||
Now you can install additional plugin in the build. Just follow the [Adding a plugin to an editor tutorial](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installing-plugins.html#adding-a-plugin-to-an-editor) | ||
|
||
### Rebuilding editor | ||
|
||
If you have already done the [Installation](#installation) and [Adding or removing plugins](#adding-or-removing-plugins) steps, you're ready to rebuild the editor by running the following command: | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
This will build the CKEditor 5 to the `build` directory. You can open your browser and you should be able to see the changes you've made in the code. If not, then try to refresh also the browser cache by typing `Ctrl + R` or `Cmd + R` depending on your system. | ||
|
||
## What's next? | ||
|
||
Follow the guides available on https://ckeditor.com/docs/ckeditor5/latest/framework/index.html and enjoy the document editing. | ||
|
||
## FAQ | ||
|
||
| Where is the place to report bugs and feature requests? | ||
|
||
You can create an issue on https://github.com/ckeditor/ckeditor5/issues including the build id - `6kdfil48ihwd-jujsj4qk5w31`. Make sure that the question / problem is unique, please look for a possibly asked questions in the search box. Duplicates will be closed. | ||
|
||
| Where can I learn more about the CKEditor 5 framework? | ||
|
||
Here: https://ckeditor.com/docs/ckeditor5/latest/framework/ | ||
|
||
| Is it possible to use online builder with common frameworks like React, Vue or Angular? | ||
|
||
Not yet, but it these integrations will be available at some point in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @license Copyright (c) 2014-2023, CKSource Holding sp. z o.o. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
import type { EditorConfig } from '@ckeditor/ckeditor5-core'; | ||
import { ClassicEditor } from '@ckeditor/ckeditor5-editor-classic'; | ||
import { Essentials } from '@ckeditor/ckeditor5-essentials'; | ||
import { Mention } from '@ckeditor/ckeditor5-mention'; | ||
import { Paragraph } from '@ckeditor/ckeditor5-paragraph'; | ||
|
||
declare class Editor extends ClassicEditor { | ||
static builtinPlugins: ( | ||
| typeof Essentials | ||
| typeof Mention | ||
| typeof Paragraph | ||
)[]; | ||
static defaultConfig: EditorConfig; | ||
} | ||
export default Editor; |
Oops, something went wrong.