manshar / manshar Goto Github PK
View Code? Open in Web Editor NEWNO LONGER BEING MAINTAINED - Arabic social publishing platform — منصة نشر مخصصة للغة العربية
Home Page: https://www.manshar.com
License: BSD 2-Clause "Simplified" License
NO LONGER BEING MAINTAINED - Arabic social publishing platform — منصة نشر مخصصة للغة العربية
Home Page: https://www.manshar.com
License: BSD 2-Clause "Simplified" License
The web-client is full separated. why I have to setup local backend, just wanna to contribute to the web-cient-app. this issue blocking me from contributing since three months every time I'm trying I got tired of backend setup and loose my passion.
Can you guys separate the contribution instructions to backend and web-client ?
Unless you are ok with personal pictures being used against the will of the owner for example :).
It would be nice to have RSS/Atom feed for the website, say, for the latest, the best, etc. and also for categories. and (maybe in the future) for the users.
Tried Manshar on mobile (iPhone5), and noticed these issues (I'll work on them):
Let me know if you have any suggestions for the above issues.
Thanks,
If it'd be bigger than it now I think it's gonna be better :)
I'm trying to save article to pocket but unfortunately it's not compatible.
The current contributing guidelines reflect the old structure of the app. The current structure (2 separate apps for backend/ and web-client) need to be documented better in the contributing guidelines.
Bad behavior, recommendation button works on drafts.
I think it'll be better if the container goes to right and not to be centered like this in the page.
I've got this error while establishing the rails s
command.
/home/ahmgeek/.rvm/gems/ruby-2.2.2/gems/fog-1.27.0/lib/fog/openstack/volume.rb:191: warning: duplicated key at line 196 ignored: :openstack_region
.
it's related to this I guess.
In the last days I was thinking about manshar structure.
Why manshar does not use Angular in Rails directly?
I can not get a good answer. So can someone explain to me why you guys did that
Critical security issue for Rails 4.0.1: http://seclists.org/oss-sec/2013/q4/400
Currently we don't do any optimizing for returning smaller images instead we return the original uploaded image. Manshar need to optimize for slow connections by returning thumbnails in list view and return properly sized and optimized images when needed.
Should I be redirected to the home page after deleting a draft ?
ref: _manshar/web-client/app/scripts/controllers/profileController.js_
var deleteSuccess = function () {
$analytics.eventTrack('Article Deleted', {
category: 'Article'
});
$location.path('/');
};
We can use a ribbon or just a small word that says "Tajribi".
People have been having troubles using Manshar on Firefox. I only have been testing the work on Chrome, this bug is to track the basic support of Manshar for Firefox browser.
Hi,
When I navigate to https://www.manshar.com/articles/new/ I get a blank page with a javascript error that says: Cannot transition to abstract state 'app'.
I should say, I'm not logged in, so maybe that's why; but a login page should show up instead of a blank page.
Here are the steps to reproduce this error:
The first time I noticed this is was when I clicked on the link "اكتب مقال الان" from the side menshar.org
Let me know if you need any more details.
Thanks
Hady
As described in the Manshar Code Structure document, all frontend and static resources should love in web-client/ folder. Please remove all the the frontend setup files from the rails app. Rails app should only be used to implement API endpoints.
If the user is using an unsupported browser warn them of the currently supported browsers.
During signing up and submit to http://api.manshar.com/api/v1/registrations.json request fails with Google Chrome.
make the name of the comment author link-able, redirect to author profile.
As indicated in the Login System document. Can we have normal email/password signup/sign in flow?
Examples:
I think (as a UI designer) the main font is a little bit old fashion and It's gonna be great if it'd be 'Greta' or any new fontface :)
As a followup to #190. highlight.js sometimes break and doesn't highlight code correctly.
Investigate and fix.
Profile image/Bio should not be in the signup form, otherwise users will bounce more oftn before signup.
I would also remove the name (and ask for it afterward), but that's less of an issue.
Also, why not just use Gravatar for profile images?
#article-body
contains empty paragraphs (<p>
) in some situations. This may cause several problems, including styling ones (adding padding for p
's, for example).
As a solution, I would suggest using <br>
's for empty paragraphs, in case the user wanted a blank line.
The problem is present in this article. The cause of this issue may be related to that of #205.
(updated list)
article
container's width.angular-loading-bar?
Words can be broken as separate parts among consecutive lines if there is no space in the original line. This is due to the CSS property word-wrap: break-word
, which is applied to the #article-body
element.
The problem is: When deleting this property, the text flow gets all weird in some articles (in latest Chrome at least).
I found that the real problem is that text in #article-body
uses
(non-breaking space) as a space character in some situations (some paragraphs has 1 or 2, some has none, some are full of).
So, adding that CSS property solves this problem, but breaks other words as well.
A good example article of the whole problem: www.manshar.com/articles/2422.
the size of both files (DroidNaskh-Regular / Bold) is more than 78 KB.
if we used base64, we can decrees the size to 5 KB!
i have done it locally but i am not sure if thats real number (from 78KB to 5KB).
for converting from woff to base64 i used this tool (http://www.fontsquirrel.com/tools/webfont-generator)
input of upload image, can upload any file from this input so i think need more validation for image extensions
Links doesn't display properly in the comments.
Long lines in pre tags are trimmed, the you have to zoom out to see the complete line.
Environment: Firefox 36.0.4/Ubuntu
Example:
http://www.manshar.com/articles/509
In order to keep the web client development as separate as possible from the backend and to make it easy to test quickly without having to run a locale instance of the backend we need to have mock services that returns mock data.
This also will help when writing unit tests.
Dear Manshar Team.
I was trying to Login with my G-Mail ( Google Auth API )
and it gives me empty page with " Redirecting... " with a
Javascript Error " SyntaxError: Unexpected token ILLEGAL "
re-login in manshar after 401 will always redirect the user to the homepage
while reading an article on manshar and got distracted for sometime by other natural phenomena ( my daughter ) then continuing to finish reading, when I pressed the "like" I was redirected to the login ( e.g my session ended ) but after I did login, it redirected me to the homepage instead of the article I was at.
Going through the code, I noticed previous path isn't preserved and redirected to upon "unauthorized access" from the $httpProvider interceptor.
Response:
POST http://api.manshar.com/api/v1/articles/205/recommendations 401 (Unauthorized)
No Authorization Token.
Payload {"articleId":205}
content:
{"errors":"Unauthorized."}
// https://github.com/manshar/manshar/blob/master/web-client/app/scripts/app.js#L144
'responseError': function(response) {
if (response.status === 401) {
$location.path('/login');
return $q.reject(response);
}
else {
return $q.reject(response);
}
Migrating from legacy to container-based infrastructure for faster builds.
Users currently are seeing a lot of slowness in Manshar. We need to do optimizations, some ideas include:
I tried to edit my bio, it forced me to change profile photo!
/articles/wrong-id
/articles/wrong-id/edit
Should 404 and show a proper message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.