1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 15:51:16 +02:00
Commit Graph

127 Commits

Author SHA1 Message Date
Toby Zerner
7ceed5ff75 Fix regression with post styles 2015-03-03 20:54:37 +10:30
Toby Zerner
da023885b6 Import Open Sans 2015-03-03 20:54:26 +10:30
Toby Zerner
86c4a0dbb8 For some reason this didn't go in with the previous commit 2015-03-03 20:31:07 +10:30
Toby Zerner
595364f419 Responsive design baby!
Mobile responsive design with a very native feel, all in pure CSS (no
templating differences between versions — even though some things are
in very different positions.)

I’ve been working on this whole thing in my head for a while now,
planning out how certain components will be laid out on the mobile
version, and how to reason about them in the templates so that a
substantially different layout can still be achieved by only using CSS.
Today I finally wrote the CSS and it’s come together pretty damn
perfectly.

Still to come:
- Swiping left or right on discussions to reveal controls
- Tablet version
2015-03-03 20:30:52 +10:30
Toby Zerner
a07f896397 Prepare welcome hero for demo 2015-02-26 13:30:13 +10:30
Toby Zerner
171bc4691a Fix 1.11 deprecation error 2015-02-26 13:30:03 +10:30
Toby Zerner
f3021e9a85 Only reload results once when multiple params change 2015-02-26 13:29:26 +10:30
Toby Zerner
866200c2a2 Fix alerts not dismissing 2015-02-26 13:28:44 +10:30
Toby Zerner
a007f4c402 Have a go at some error handling
Still not happy with how this is all fitting together. But good enough
for now
2015-02-26 12:48:23 +10:30
Toby Zerner
b9c09dc37f Render deleted users better 2015-02-26 12:47:50 +10:30
Toby Zerner
6ad8050840 Missed some create→extend changes 2015-02-26 12:47:04 +10:30
Toby Zerner
701f27747a Temporary fix for read marking 2015-02-26 12:46:27 +10:30
Toby Zerner
5d9332fc7b Add model validation back in 2015-02-26 12:44:39 +10:30
Toby Zerner
7dd49cb445 Fix index result caching 2015-02-26 09:45:12 +10:30
Toby Zerner
05a4662a02 Tweak discussion controls dropdown split 2015-02-26 09:44:31 +10:30
Toby Zerner
b5beda019f Fix composer closing animation from minimised state 2015-02-26 09:44:12 +10:30
Toby Zerner
f5aa7bfefa Use component prototypes instead of instances
This means the component instance is created in the template, meaning
properties can be overridden in the view helper. It also just makes
more sense - a view instance doesn’t need to exist until it is rendered
in the template.
2015-02-26 09:43:53 +10:30
Toby Zerner
bde89cdc31 Upgrade to latest ember, cli, etc.
ember 1.11.0-beta.3 fixes a demo-blocking bug. ember-json-api 0.3.0
fixes a bug so we can remove custom serializer code.
2015-02-26 09:39:21 +10:30
Toby Zerner
13a4ced63d Finish signup process, including state restoration 2015-02-25 15:34:02 +10:30
Toby Zerner
327719c5a3 Remove unused template 2015-02-25 15:32:21 +10:30
Toby Zerner
2733b5810d Upgrade to L5 + huge refactor + more. closes #2
New stuff:
- Signup + email confirmation.
- Updated authentication strategy with remember cookies. closes #5
- New search system with some example gambits! This is cool - check out
the source. Fulltext drivers will be implemented as decorators
overriding the EloquentPostRepository’s findByContent method.
- Lay down the foundation for bootstrapping the Ember app.
- Update Web layer’s asset manager to properly publish CSS/JS files.
- Console commands to run installation migrations and seeds.

Refactoring:
- New structure: move models, repositories, commands, and events into
their own namespaces, rather than grouping by entity.
- All events are classes.
- Use L5 middleware and command bus implementations.
- Clearer use of repositories and the Active Record pattern.
Repositories are used only for retrieval of ActiveRecord objects, and
then save/delete operations are called directly on those ActiveRecords.
This way, we don’t over-abstract at the cost of Eloquent magic, but
testing is still easy.
- Refactor of Web layer so that it uses the Actions routing
architecture.
- “Actor” concept instead of depending on Laravel’s Auth.
- General cleanup!
2015-02-24 20:33:18 +10:30
Toby Zerner
c03d8b96b8 Fix modal appearance 2015-02-16 14:12:48 +10:30
Toby Zerner
daa87269b4 Add a little spin transition on the search 'x' :) 2015-02-16 13:30:11 +10:30
Toby Zerner
4f8157a66f Better LESS configuration/theme customisability 2015-02-16 12:40:57 +10:30
Toby Zerner
5fa947df56 Add styles for post footer/actions
Will be used by extensions
2015-02-13 22:03:34 +10:30
Toby Zerner
4a10ae4e98 Fix logout action 2015-02-13 11:47:58 +10:30
Toby Zerner
d44772af3d Oops 2015-02-13 11:47:37 +10:30
Toby Zerner
b337d5cd72 Clean up user avatar/color generation 2015-02-13 11:45:14 +10:30
Toby Zerner
5ebd0a0e93 Implement "renamed" posts
Record when the discussion was renamed, from what, and by whom.
Information is stored in the `content` field as a serialised JSON
object because proper polymorphism will be too difficult with Ember
Data and especially when extensions try to add new post types.
2015-02-13 10:23:38 +10:30
Toby Zerner
dc21666215 Remove the go to top button
It’s not particularly useful when there are fixed elements all over the
page (header, sidebar)
2015-02-13 09:46:22 +10:30
Toby Zerner
25f57c459d Still show index pane when a discussion is created 2015-02-12 15:19:46 +10:30
Toby Zerner
b0f6d7f1f8 Fix mark as read bug 2015-02-12 15:18:26 +10:30
Toby Zerner
32fc2f5b8b Rename and delete discussion controls 2015-02-12 15:18:17 +10:30
Toby Zerner
875e239497 Only show reply button if user has permission 2015-02-12 15:17:20 +10:30
Toby Zerner
d89bcef816 Helper method for adding menu separators 2015-02-12 15:16:15 +10:30
Toby Zerner
7001c83fb3 Implement discussion deletion 2015-02-12 14:35:40 +10:30
Toby Zerner
b97887b612 Implement hard deletion and rename soft delete to hide 2015-02-12 14:35:24 +10:30
Toby Zerner
a29b849c54 Fix up uncaught ajax error alert message 2015-02-12 14:34:07 +10:30
Toby Zerner
450039f967 Fix up bug with the way we hide list items
If we use an #unless condition, then when the view is removed from the
template, it is destroyed, and cannot be inserted again. So we’ll just
keep the item there the whole time, and toggle its visibility with CSS.
2015-02-10 19:55:22 +10:30
Toby Zerner
4bfb973255 Delete ember-cli README 2015-02-10 18:08:20 +10:30
Toby Zerner
83b273db0d Upgrade to Ember 1.11-beta.1
HTMLBars goodness! Since there was some breakage and a lot of fiddling
around to get some things working, I took this opportunity to do a big
cleanup of the whole Ember app. I accidentally worked on some new
features too :3

Note that the app is still broken right now, pending on
https://github.com/emberjs/ember.js/issues/10401

Cleanup:
- Restructuring of components
- Consolidation of some stuff into mixins, cleanup of some APIs that
will be public
- Change all instances of .property() / .observes() / .on() to
Ember.computed() / Ember.observer() / Ember.on() respectively (I think
it is more readable)
- More comments
- Start conforming to a code style (2 spaces for indentation)

New features:
- Post hiding/restoring
- Mark individual discussions as read by clicking
- Clicking on a read discussion jumps to the end
- Mark all discussions as read
- Progressively mark the discussion as read as the page is scrolled
- Unordered list post formatting
- Post permalink popup

Demo once that Ember regression is fixed!
2015-02-10 18:05:40 +10:30
Toby Zerner
d98b2a5642 Move extractMeta override to serializer 2015-02-09 20:14:18 +10:30
Toby Zerner
526e7114a3 Add editorconfig 2015-02-09 20:12:42 +10:30
Toby Zerner
5d83e51813 Improve LESS variable skinning (unfinished) 2015-02-08 16:00:09 +10:30
Toby Zerner
24f9e97df4 Signup + modal refactoring 2015-02-08 15:59:39 +10:30
Toby Zerner
d053b5760e Fix jumpy downward post loading 2015-02-08 15:58:53 +10:30
Toby Zerner
199bbcf5d4 Fix scrubber times 2015-02-08 15:58:37 +10:30
Toby Zerner
9fd935285f Fix index pane autoscroll 2015-02-08 15:57:33 +10:30
Toby Zerner
ccb49a7120 Make post types/components more flexible 2015-02-08 15:56:44 +10:30
Toby Zerner
b12fcf1b2d Implement post editing 2015-02-08 15:55:33 +10:30