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

fix: new mobile create post UI #1922

Merged
merged 32 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
31c83d2
fix
RiXelanya Nov 23, 2023
46bb9f7
fix
RiXelanya Nov 27, 2023
cba6617
fix
RiXelanya Nov 27, 2023
9eac8e7
fix
RiXelanya Nov 27, 2023
a2bd331
add global css
RiXelanya Nov 29, 2023
877b63f
format fix
RiXelanya Nov 29, 2023
3f6e2b9
fix
RiXelanya Nov 30, 2023
cceecb5
Merge branch 'myriadsocial:main' into mobiletrial
RiXelanya Dec 4, 2023
a72dbff
fix
RiXelanya Dec 4, 2023
6e65b15
add react icons dependencies
RiXelanya Dec 4, 2023
00cb7bc
fix
RiXelanya Dec 5, 2023
df28693
fix
RiXelanya Dec 5, 2023
87757ef
Update Bottombar.tsx
RiXelanya Dec 5, 2023
3ffe933
Update MobilePostCreate.tsx
RiXelanya Dec 6, 2023
c7080e0
fix
RiXelanya Dec 6, 2023
133e654
fix
RiXelanya Dec 8, 2023
6f846a5
fix
RiXelanya Dec 8, 2023
85442ce
Update formatter.ts
RiXelanya Dec 8, 2023
5f59482
new mobile ui
RiXelanya Dec 11, 2023
13fb005
Merge branch 'myriadsocial:main' into mobiletrial
RiXelanya Dec 11, 2023
0c01d46
fix
RiXelanya Dec 11, 2023
8ca46ff
Merge branch 'mobiletrial' of https://github.com/RiXelanya/myriad-web…
RiXelanya Dec 11, 2023
6549775
Update ckeditor.ts
irmannmal Dec 12, 2023
b685fa9
update prettierignore
RiXelanya Dec 13, 2023
6ac6246
video upload
RiXelanya Dec 13, 2023
4da25b3
video upload
RiXelanya Dec 18, 2023
f123e5d
Update MobileEmbed.tsx
RiXelanya Dec 18, 2023
a269601
fix
RiXelanya Dec 18, 2023
a4cc9d4
Update MobilePostCreate.tsx
RiXelanya Dec 18, 2023
fd4fc9f
add crude timeline selection
RiXelanya Dec 20, 2023
ea9632b
lint fix
RiXelanya Dec 20, 2023
4476919
Update MobilePostCreate.tsx
RiXelanya Dec 20, 2023
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
114 changes: 114 additions & 0 deletions .prettierignore
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
11 changes: 11 additions & 0 deletions ckeditor.css
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;
}
}
47 changes: 47 additions & 0 deletions ckeditor5/LICENSE.md
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.
61 changes: 61 additions & 0 deletions ckeditor5/README.md
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.
19 changes: 19 additions & 0 deletions ckeditor5/build/ckeditor.d.ts
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;
Loading
Loading