No description
  • JavaScript 71.3%
  • Handlebars 15.8%
  • SCSS 10%
  • HTML 2%
  • CSS 0.9%
Find a file
feld 984a216145 Merge branch 'fix/default-tags' into 'master'
Remove default tags. We generate our own from the backend.

See merge request pleroma/fedi-fe!81
2021-06-14 21:42:18 +00:00
.git-hooks Adds pre-push hook and instructions in readme to configure them 2019-08-14 15:07:51 -07:00
app Remove default tags. We generate our own from the backend. 2021-06-11 12:09:30 -05:00
config Preserve original aspect ration for gifs and videos 2021-06-03 15:33:27 -05:00
kss-theme Add kss config and theme (#29) 2019-08-14 10:36:50 -04:00
lib Remove in-repo ember-cli-deploy addon (#343) 2020-02-10 08:26:54 -08:00
mirage Remove the deprecated /api/statusnet/config.json endpoint 2020-10-09 18:52:43 +03:00
public Revert gallery supporting two image sizes -- preview and original. Only show original. 2021-06-04 20:57:19 -05:00
service-worker [ch2728] Push notifications redo (#717) 2020-08-26 19:33:54 +00:00
tests Revert gallery supporting two image sizes -- preview and original. Only show original. 2021-06-04 20:57:19 -05:00
translations Fix empty chat list callout and the mark-as-read function 2021-03-14 16:20:44 +03:00
vendor ember ini --skip-npm --yarn=true --no-welcome 2019-07-31 10:14:56 -07:00
.editorconfig Upgrade Ember and Ember Data to 3.17.x series (#587) 2020-04-07 14:23:47 +00:00
.ember-cli turn off ssl to get around chrome issue (#755) 2020-07-09 19:13:00 +00:00
.envrc Add .envrc (#320) 2020-02-06 13:51:32 -05:00
.eslintignore Remove the reason for authentication copy and keys from the url (#164) 2019-10-25 15:05:33 -07:00
.eslintrc.js Upgrade Ember and Ember Data to 3.17.x series (#587) 2020-04-07 14:23:47 +00:00
.eucrc.js Update ember-unused-components, adds eucrc.js config 2019-09-07 15:18:16 -07:00
.gitignore Add local netlify folder to gitignore (#347) 2020-02-10 12:32:04 -05:00
.gitlab-ci.yml Attempt to fix running build test job twice after merge to master 2021-06-02 14:30:28 -05:00
.ignore Ignore some folders for code searching purposes (#384) 2020-02-20 16:07:37 +00:00
.prettierrc.js Tweak lint configuration (#312) 2020-02-05 21:29:31 -05:00
.sassdocrc.json Add sassdoc exclusion (#214) 2019-11-14 10:34:35 -05:00
.stylelintignore Narwin stylekit (#66) 2019-10-15 08:41:02 -04:00
.stylelintrc.js Refactor of stylelint usage (#370) 2020-02-13 00:45:24 +00:00
.template-lintrc.js Upgrade Ember and Ember Data to 3.17.x series (#587) 2020-04-07 14:23:47 +00:00
.travis.yml [ch2978] Sentry Integration (#747) 2020-06-23 16:13:04 -07:00
.watchmanconfig Narwin stylekit (#66) 2019-10-15 08:41:02 -04:00
AGPL-3 Add AGPLv3 license (#750) 2020-06-22 21:29:05 +00:00
bors.toml Simplify BORS config (#425) 2020-03-03 03:59:24 +00:00
COPYING Add AGPLv3 license (#750) 2020-06-22 21:29:05 +00:00
DEBUGGING.md Add placeholder for our debugging documentation 2020-07-28 15:58:49 -05:00
ember-cli-build.js Fix the service worker registration script path 2021-03-12 23:59:29 +03:00
kss-config.json Add kss config and theme (#29) 2019-08-14 10:36:50 -04:00
netlify.toml Show old direct timeline for DMs (#783) 2020-08-19 20:58:40 +00:00
package.json Load full gallery image on button click 2021-04-04 00:32:47 +03:00
README.md fir pleroma version in README 2020-09-29 10:24:52 -04:00
spellcheck-translations.js Registration rebase (#344) 2020-02-10 15:11:30 -08:00
testem.js Upgrade Ember and Ember Data to 3.17.x series (#587) 2020-04-07 14:23:47 +00:00
yarn.lock Load full gallery image on button click 2021-04-04 00:32:47 +03:00

Fedi-FE

PWA client for Pleroma instances. Built with Ember.

Home Timeline

Prerequisites

You will need the following things properly installed on your computer.

Setup

  • git clone https://git.pleroma.social/pleroma/fedi-fe.git
  • cd fedi-fe
  • yarn install

Deploying a FediFE build to Pleroma

  • Requires Pleroma 2.1 or later
  • Update your Pleroma server configuration e.g., config :pleroma, :frontends, primary: %{"name" => "fedife", "ref" => "dist"}
  • run
    • yarn build
    • copy the dist directory to your static_dir, e.g., instance/static/frontends/fedife/dist
    • Start your Pleroma instance

Running / Development

Note: Because I like working with real data and an API for this already exists, I have our Mirage server turned off in development.

Developing against local pleroma-api

  • Ensure you have postgres installed locally,
  • If you dont, you can easily install via homebrew + run /usr/local/opt/postgres/bin/createuser -s postgres to create the default postgres user
  • Clone the api: https://git.pleroma.social/pleroma/pleroma
  • run
    • mix deps.get
    • mix deps.compile
    • mix ecto.create
    • mix ecto.migrate
    • mix phx.server

Consuming existing Phoenix instance

  • API_BASE_URL=http://localhost:4000 npm start

Performance and Error monitoring.

Right now, during our beta phases, we have some perf monitoring and error tracking enabled. It's only active if SENTRY_DSN is present during build time. See DEBUGGING.md for more information.

If you want to rip it all out, you will want to remove the sentry service, the sentry deps from package.json, and the ember-user-performance-monitoring lib from package.json.

SVG's

  • We are using SVG Jar.
  • Just add an SVG to the public directory, restart the development server.
  • Invoke SVG's like so: {{svg-jar "dockyard-logo" width="40px" height="40px"}}

Styleguides

KSS

  • We are using KSS styleguides.
  • They are automatically created when running the development server.
  • The server will spit out a file path to open the generated styleguide.
  • Open that file in your browser. (paste that path into your browsers url bar)
  • The styleguide will rebuild on changes within app/styles.
  • To see the new changes, refresh the page.

Sassdoc

  • We are using SASSDOC.
  • They are automatically created when running the development server.
  • The server will spit out a file path to open the generated docs.
  • Open that file in your browser. (paste that path into your browser url bar);
  • The docs will rebuild on changes within app/styles.
  • TO see the new changes, refresh the page

Code Generators

Make use of the many generators for code, try ember help generate for more details

Tests

Running Tests

  • ember exam
  • ember exam --server
  • ember exam --filter='acceptance'

See Ember Exam

Writing Tests

Linting

  • yarn lint:hbs
  • yarn lint:js
  • yarn lint:js --fix

Building

  • ember build (development)
  • ember build --environment production (production)

Debugging bundle size

  • After starting the ember server, visit https://localhost:4200/_analyze to view the bundle analyzer

Debugging service worker

  • Navigate to chrome://serviceworker-internals/